API: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 collection.
System.Classes.TOwnedCollection.Create inherits from System.Classes.TCollection.Create. All content below this line refers to System.Classes.TCollection.Create.
Creates and initializes a collection.
Call Create to instantiate a TCollection object at run time. Typically, TCollection descendants are created by a component that uses the collection to implement a property.
ItemClass
identifies the TCollectionItem descendants that must be used to represent the items in the collection. The Add method uses this class to create items of the appropriate type.