Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomListView.GetItemAt(Integer,Integer) Method

Returns the item by the specified location.

#Declaration

Delphi
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