[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TOwnedCollection.Create

Create a new TOwnerCollectioninstance.

Declaration

Source position: classesh.inc line 421

public constructor TOwnedCollection.Create(

  AOwner: TPersistent;

  AItemClass: TCollectionItemClass

);

Description

Createcreates a new instance of TOwnedCollectionand stores the AOwnerreferences. It will the value returned in the TCollection.Ownerproperty of the collection. The ItemClassclass reference is passed on to the inherited constructor, and will be used to create new instances in the Insertand Addmethods.

See also

TCollection.Create

  

Creates a new collection.

TCollection.Owner

  

Owner of the collection.