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

# TCollection.GetItem

Read handler for the TCollection.Items property.

## Declaration

`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.