System.Generics.Collections.TObjectList.OwnsObjects

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OwnsObjects: Boolean read FOwnsObjects write FOwnsObjects;

C++

__property bool OwnsObjects = {read=FOwnsObjects, write=FOwnsObjects, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TObjectList

Description

Get or set object ownership.

OwnsObjects gets or sets whether objects in the list are owned by the list or not. If entries are owned, when an entry object is removed from the list, the entry object is freed. Create initializes this property.

See Also

Code Examples