TFPGInterfacedObjectList.Add¶
Add new object of class T to the list.
Declaration¶
Source position: fgl.pp line 245
public
function TFPGInterfacedObjectList.Add(const Item: T) : Integer;
Description¶
Add adds a new item Item of class type T to the list and returns the position at which the item was added. Add will increase the reference count of the object.
Errors¶
If the item could not be added, an EListError exception is raised.
See also¶
| Name | Description |
|---|---|
| TFPGInterfacedObjectList.Extract | Extract an item from the list. |
| TFPGInterfacedObjectList.Items | Indexed access to objects in the list. |
| TFPGInterfacedObjectList.IndexOf | Index of object. |