Skip to main content

TcxComponentCollection.IndexOf(TcxComponentCollectionItem) Method

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

Declaration

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