System.Classes.TOwnedCollection.Create
Delphi
constructor Create(AOwner: TPersistent; ItemClass: TCollectionItemClass);
C++
__fastcall TOwnedCollection(TPersistent* AOwner, TCollectionItemClass ItemClass);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Classes.pas System.Classes.hpp |
System.Classes | TOwnedCollection |
Description
Creates and initializes a TOwnedCollection instance.
The Create method takes two parameters: the name of an instance object descended from TPersistent and the name of a TCollectionItem descendant class. The first parameter is the owner of the TOwnedCollection instance. The second parameter determines the class of the items created by the Add method.