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

GetColumnBounds() private method

private GetColumnBounds ( int column ) : Rectangle
column int
return Rectangle
        private Rectangle GetColumnBounds(int column)
        {
            int x = 0;
            for (int i = 0; i < Columns.Count; i++)
            {
                if (Columns[i].IsVisible)
                {
                    if (i < column)
                        x += Columns[i].Width;
                    else
                        return new Rectangle(x, 0, Columns[i].Width, 0);
                }
            }
            return Rectangle.Empty;
        }
TreeViewAdv