RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCollectionItem.Index Property

Returns the item's position in the Items array of TCollection.

Pascal
property Index: Integer;
C++
__property int Index;

Each TCollectionItem is indexed in the Items array of the TCollection to which it belongs. The Index property of the TCollectionItem contains the item's index value in that array. Read the value of Index to determine the collection item's position. Set the value of Index to move the collection item to a new position. 

Items is a zero-based array. The first member of the collection has an index value of 0, the second member has an index value of 1, and so forth. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!