Skip to main content

TcxCustomListView.GetItemAt(Integer,Integer) Method

Returns the item by the specified location.

Declaration

function GetItemAt(X: Integer; Y: Integer): TListItem;

Parameters

Name Type
X Integer
Y Integer

Returns

Type
TListItem

Remarks

Use the GetItemAt method to obtain the TListItem object representing the item located under the specified point. The point is specified by its horizontal and vertical coordinates via the X and Y parameters respectively. Note that the control’s client coordinates must be specified. If you have screen coordinates, you should use the ScreenToClient method of the control to obtain client coordinates.

See the GetHitTestInfoAt method description for the example of using the GetItemAt method.

See Also