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

TCollection.GetItem

Read handler for the TCollection.Items property.

Declaration

Source position: classesh.inc line 486

protected function TCollection.GetItem(

  Index: Integer

):TCollectionItem;

Description

GetItem is the read handler for the TCollection.Items property. It returns the Index-th element from the list of objects.

Errors

If Index is outside the allowed range, then an EListError exception is raised.

See also

TCollection.Items

  

Indexed array of items in the collection.

TCollection.Count

  

Number of items in the collection.

TCollection.SetItem

  

Write handler for the TCollection.Items property.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.