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

TcxListBox.ItemAtPos(TPoint,Boolean) Method

Returns the index of the item located at the specified point.

#Declaration

Delphi
function ItemAtPos(const APos: TPoint; AExisting: Boolean): Integer;

#Parameters

Name Type
APos TPoint
AExisting Boolean

#Returns

Type
Integer

#Remarks

You can use the ItemAtPos method to determine the item located under the specified point. The point is specified relatively to the top-left corner of the control via the APos parameter. The AExisting parameter specifies the return value if the specified point is below the last item. If this parameter value is True, the method returns -1. Otherwise, the ItemAtPos method returns the index of the last available item incremented by one.

See Also