RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObjectList Class

TObjectList maintains a list of (owned) objects.

Pascal
TObjectList = class(TList);
C++
class TObjectList : public TList;

Use TObjectList to store and maintain a list of objects. TObjectList provides properties and methods to add, delete, rearrange, locate, access, and sort objects. If the OwnsObjects property is set to true (the default), TObjectList controls the memory of its objects, freeing an object when its index is reassigned; when it is removed from the list with the Delete, Remove, or Clear method; or when the TObjectList instance is itself destroyed. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!