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

RowIndexAt() public method

Returns the index of the Row at the specified client coordinates
public RowIndexAt ( int x, int y ) : int
x int The client x coordinate of the Row
y int The client y coordinate of the Row
return int
        public int RowIndexAt(int x, int y)
        {
            if (this.TableModel == null)
            {
                return -1;
            }

            if (this.HeaderStyle != ColumnHeaderStyle.None)
            {
                y -= this.HeaderHeight;
            }

            y -= this.BorderWidth;

            if (y < 0)
            {
                return -1;
            }

            if (this.VScroll)
            {
                y += this.VScrollOffset();
            }

            return this.TableModel.RowIndexAt(y);
        }

Same methods

Table::RowIndexAt ( Point p ) : int
Table