RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCollection.Create Constructor

Creates and initializes a collection.

Pascal
constructor Create(ItemClass: TCollectionItemClass);
C++

Call Create to instantiate a TCollection object at runtime. Typically, TCollection descendants are created by a component that uses the collection to implement a property. 

ItemClass identifies TCollectionItem descendant that must be used to represent the items in the collection. The Add method uses this class to create items of the appropriate type. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!