Vcl.ImgList.TCustomImageList.AddIcon
Delphi
function AddIcon(Image: TIcon): Integer;
C++
int __fastcall AddIcon(Vcl::Graphics::TIcon* Image);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
Description
Ajoute l'icône à l'objet liste d'images.
La méthode AddIcon ajoute l'icône spécifiée par le paramètre Image à la liste d'images. AddIcon renvoie l'indice de l'image ajoutée ou -1 si l'opération échoue.