XPTable.Models.Table.ColumnHeaderRect C# (CSharp) Method

ColumnHeaderRect() public method

Returns the bounding rectangle of the specified column's header in client coordinates
public ColumnHeaderRect ( int column ) : Rectangle
column int The index of the column
return System.Drawing.Rectangle
        public Rectangle ColumnHeaderRect(int column)
        {
            if (this.ColumnModel == null)
            {
                return Rectangle.Empty;
            }

            Rectangle rect = this.ColumnModel.ColumnHeaderRect(column);

            if (rect == Rectangle.Empty)
            {
                return rect;
            }

            rect.X -= this.hScrollBar.Value - this.BorderWidth;
            rect.Y = this.BorderWidth;

            return rect;
        }

Same methods

Table::ColumnHeaderRect ( Column column ) : Rectangle
Table