Skip to main content

TcxDataSummaryItems.IndexOfItemLink(TObject) Method

Determines the position of the collection element which references a specific item.

Declaration

function IndexOfItemLink(AItemLink: TObject): Integer;

Parameters

Name Type
AItemLink TObject

Returns

Type
Integer

Remarks

The IndexOfItemLink function returns the index of the collection element which references a specific item via the ItemLink property. If the current collection does not contain the TcxDataSummaryItem object which references AItemLink, the function returns -1. The items collection is maintained by the Items property.

You can use the ItemOfItemLink method to retrieve the TcxDataSummaryItem object itself instead of its index.

See Also