help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TCollectionItem.Index

Index of the item in its managing collection TCollection.Items property.

Declaration

Source position: classesh.inc line 373

public property TCollectionItem.Index: Integer
  read GetIndex
  write SetIndex;

Description

Index is the current index of the item in its managing collection's TCollection.Items property. This property may change as items are added and removed from the collection.

The index of an item is zero-based, i.e. the first item has index zero. The last item has index Count-1 where Count is the number of items in the collection.

The Index property of the items in a collection form a continuous series ranging from 0 to Count-1. The TCollectionItem.ID property does not form a continuous series, but can also be used to identify an item.

See also

TCollectionItem.ID

  

Initial index of this item.

TCollection.Items

  

Indexed array of items in the collection.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505