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

TcxComponentCollection.IndexOf(TcxComponentCollectionItem) Method

Returns the zero-based index of a specified item within the collection.

#Declaration

Delphi
function IndexOf(AItem: TcxComponentCollectionItem): Integer;

#Parameters

Name Type
AItem TcxComponentCollectionItem

#Returns

Type
Integer

#Remarks

This function searches the Items collection for the AItem, and if it is found, returns its zero-based index. Otherwise, -1 is returned.

See Also