Vcl.ImgList.TCustomImageList.AddIcon
Delphi
function AddIcon(Image: TIcon): Integer;
C++
int __fastcall AddIcon(Vcl::Graphics::TIcon* Image);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
説明
アイコンをイメージリストオブジェクトに追加します。
AddIcon メソッドは,イメージリストに Image パラメータで指定したアイコンを追加できます。AddIcon は,追加したイメージのインデックスを返します。ただし,失敗した場合は -1 を返します。