System.Classes.TCollection.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(ItemClass: TCollectionItemClass);

C++

__fastcall TCollection(TCollectionItemClass ItemClass);

Properties

Type Visibility Source Unit Parent
constructor public
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

Description

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.

See Also