FMX.ImgList.TLayers.Create

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

__fastcall TLayers(System::Classes::TPersistent* AOwner, TLayerClass ItemClass);

プロパティ

種類 可視性 ソース ユニット
constructor public
FMX.ImgList.pas
FMX.ImgList.hpp
FMX.ImgList TLayers


説明

Layers コレクションを作成し、そのコレクションが初めて使用される前にそのデータを初期化します。

Create メソッドでは、継承した TOwnedCollection.Create を呼び出して Layers コレクションを作成します。そのあと、Create では、AOwner パラメータで指定された Destination 項目 TCustomDestinationItemDestinationItem プロパティを初期化します。AOwner パラメータは、作成する Layers コレクションの所有者です。

AOwnerTCustomDestinationItem(またはその下位クラス)のインスタンスでない場合は、Create で例外が発生します。

関連項目