RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlItems.Create Constructor

Creates and initializes a TOwnedCollection instance.

Pascal
constructor Create(AOwner: TPersistent; ItemClass: TCollectionItemClass);
C++
__fastcall TListControlItems(TPersistent * AOwner, TCollectionItemClass ItemClass);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!