BaseListBoxControl.IndexFromPoint(Point) Method

Returns the index of an item at specified coordinates.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public int IndexFromPoint(
    Point p
)
Public Function IndexFromPoint(
    p As Point
) As Integer

Parameters

Name Type Description
p Point

A Point structure containing the coordinates used to obtain the item index.

Returns

Type Description
Int32

An integer value representing the zero-based index of an item at specified coordinates. -1 if no item is found.

Remarks

Use this method to identify the item located at specified coordinates within the control. For example, you can use this method to determine which item within the list is selected when a user right-clicks over the list box control.

See Also