System.Classes.TStringList.OwnsObjects
Delphi
property OwnsObjects: Boolean read FOwnsObject write FOwnsObject;
C++
__property bool OwnsObjects = {read=FOwnsObject, write=FOwnsObject, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStringList |
Description
Specifies whether the string list owns the objects it contains.
The OwnsObjects property specifies whether the string list owns the stored objects or not. If the OwnsObjects property is set to True, then the Destroy destructor will free up the memory allocated for those objects.