Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TStringList.OwnsObjects

Determines whether the stringlist owns it's objects or not.

Declaration

Source position: classesh.inc line 1161

public property TStringList.OwnsObjects : Boolean
  read FOwnsObjects
  write FOwnsObjects;

Description

OwnsObjects can be set to true to let the stringlist instance own the objects in the list: if an element is removed from the list, the associated object (if there is any) will be freed as well. The same is true if the list is cleared or destroyed.

See also

TStrings.Objects

  

Indexed access to the objects associated with the strings in the list.


Documentation generated on: Dec 25 2024