TFPGObjectList.Create¶
Instantiate a new object list.
Declaration¶
Source position: fgl.pp line 200
public
constructor TFPGObjectList.Create(FreeObjects: Boolean=True);
Description¶
Create instantiates a new object list. It will simply call the inherited constructor with the correct item size and will initialize TFPGObjectList.FreeObjects with FreeObjects.
If FreeObjects is true, then the list owns the objects. Freeing or clearing the list will remove all objects from memory by calling the destructor. Deleting or removing an item from the list will also dispose of the element.
See also¶
| Name | Description |
|---|---|
| TFPGObjectList.FreeObjects | Does the list own the objects or not? |