[]
        
(Showing Draft Content)

C1.Win.List.ListBase.C1ListBase.RowContaining

RowContaining Method

RowContaining(int)

Returns the zero-based index of the display row containing the specified coordinate.

Declaration
public int RowContaining(int y)
Parameters
Type Name Description
int y

The y coordinate in pixels.

Returns
Type Description
int

An integer corresponding to the display row beneath the specified Y coordinate.

Remarks

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.