[]
Returns the zero-based index of the display row containing the specified coordinate.
public int RowContaining(int y)
Type | Name | Description |
---|---|---|
int | y | The y coordinate in pixels. |
Type | Description |
---|---|
int | An integer corresponding to the display row beneath the specified Y coordinate. |
The RowContaining method returns the zero-based index of the display row containing the specified coordinate. This value ranges from 0 to VisibleRows - 1.
If y is outside of the list's data area, this method returns -1.