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; }