public RowIndexAt ( int yPosition ) : int | ||
yPosition | int | The y-coordinate to check |
리턴 | int |
public int RowIndexAt(int yPosition)
{
int row = 0;
if (this.Table.EnableWordWrap)
{
row = this.RowIndexAtExact(yPosition);
}
else
{
row = yPosition / this.RowHeight;
}
if (row < 0 || row > this.Rows.Count - 1)
{
return -1;
}
return row;
}