BaseListBoxControl.IndexFromPoint(Point) Method

Returns the index of an item at specified coordinates.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


public int IndexFromPoint(
    Point p


Name Type Description
p Point

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


Type Description

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


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