Vcl.ImgList.TCustomImageList.AddIcon

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddIcon(Image: TIcon): Integer;

C++

int __fastcall AddIcon(Vcl::Graphics::TIcon* Image);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList TCustomImageList

Description

Adds an icon to the image list object.

Use the AddIcon method to add the icon specified by the Image parameter to an image list. AddIcon returns the index of the added image, or -1 if it fails.

See Also