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);
}
Table::RowIndexAt ( Point p ) : int |