Vcl.ImgList.TCustomImageList.AddIcon

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

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 を返します。

関連項目