FMX.ImgList.TDestinationCollection.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TPersistent; ItemClass: TDestinationItemClass);

C++

__fastcall TDestinationCollection(System::Classes::TPersistent* AOwner, TDestinationItemClass ItemClass);

Properties

Type Visibility Source Unit Parent
constructor public
FMX.ImgList.pas
FMX.ImgList.hpp
FMX.ImgList TDestinationCollection

Description

Constructs a destination collection and initializes its data before the collection is used first.

Create calls the inherited TOwnedCollection.Create to create a TDestinationCollection collection. Then Create initializes ImageList with the TCustomImageList image list specified in the AOwner parameter. AOwner is the owner of the created TDestinationCollection collection.

Create raises an exception if AOwner is not an instance of TCustomImageList (or its descendant).

See Also