Sign in Join
FPDoc Onlineexperiment

TFPGObjectList.Items property

Member of TFPGObjectListpublicIn unit fgl

Indexed access to objects in the list.

Declaration

pascal
property Items[Index: Integer]: T read Get write Put; default;

Description

Items provides indexed access to the objects in the list. The objects can be get or set.

The index Index is zero based, and has a maximum value of Count-1.

If the list owns the objects, (FreeObjects is set to True) then the previous object at position Index is freed when setting the property.

Errors

If an invalid index is used, an EListError exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.