FMX.ImgList.TLayers.Create
Delphi
constructor Create(AOwner: TPersistent; ItemClass: TLayerClass);
C++
__fastcall TLayers(System::Classes::TPersistent* AOwner, TLayerClass ItemClass);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | FMX.ImgList.pas FMX.ImgList.hpp |
FMX.ImgList | TLayers |
Description
Constructs a Layers collection and initializes its data before the collection is used first.
Create calls the inherited TOwnedCollection.Create to create a Layers collection. Then Create initializes DestinationItem with the TCustomDestinationItem destination item specified in the AOwner
parameter. AOwner
is the owner of the created Layers collection.
Create raises an exception if AOwner
is not an instance of TCustomDestinationItem (or its descendant).