ZForge.Controls.TreeViewAdv.Tree.TreeViewAdv.DrawIcons C# (CSharp) Method

DrawIcons() private method

private DrawIcons ( ) : void
return void
        private void DrawIcons()
        {
            Graphics gr = Graphics.FromHwnd(this.Handle);
            int firstRowY = _rowLayout.GetRowBounds(FirstVisibleRow).Y;
            DrawContext context = new DrawContext();
            context.Graphics = gr;
            for (int i = 0; i < _expandingNodes.Count; i++)
            {
                foreach (NodeControlInfo info in GetNodeControls(_expandingNodes[i]))
                    if (info.Control is ExpandingIcon)
                    {
                        Rectangle rect = info.Bounds;
                        rect.X -= OffsetX;
                        rect.Y -= firstRowY;
                        context.Bounds = rect;
                        info.Control.Draw(info.Node, context);
                    }
            }
            gr.Dispose();
        }
TreeViewAdv