API:Vcl.VirtualImageList.TVirtualImageList.Add
Delphi
procedure Add(const ACategory: String; AStartIndex, AEndIndex: Integer; AddDisabledCopies: Boolean = False); overload;
procedure Add(AName: String; ACollectionIndex: Integer; AddDisabledCopy: Boolean = False); overload;
procedure Add(AName: String; const ACollectionName: String; AddDisabledCopy: Boolean = False); overload;
C++
HIDESBASE void __fastcall Add(const System::UnicodeString ACategory, int AStartIndex, int AEndIndex, bool AddDisabledCopies = false)/* overload */;
HIDESBASE void __fastcall Add(System::UnicodeString AName, int ACollectionIndex, bool AddDisabledCopy = false)/* overload */;
HIDESBASE void __fastcall Add(System::UnicodeString AName, const System::UnicodeString ACollectionName, bool AddDisabledCopy = false)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | Vcl.VirtualImageList.pas Vcl.VirtualImageList.hpp |
Vcl.VirtualImageList | TVirtualImageList |
説明
Add は,イメージとそのマスクをイメージリストオブジェクトに追加します。
Vcl.VirtualImageList.TVirtualImageList.Add は Vcl.ImgList.TCustomImageList.Add を継承しています。以下の内容はすべて Vcl.ImgList.TCustomImageList.Add を参照しています。
Add は,イメージとそのマスクをイメージリストオブジェクトに追加します。
Add メソッドは,イメージとそのマスクをイメージリストに追加できます。これは,追加したイメージのインデックスを返します。ただし,失敗した場合は -1 を返します。イメージリストの Masked プロパティが false の場合は,2 つめのビットマップハンドルは無視されます。このハンドルは nil(Delphi)または NULL(C++)に設定することもできます。