RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.AddIcon Method

Adds an icon to the image list object.

Pascal
function AddIcon(Image: TIcon): Integer;
C++
__fastcall int AddIcon(TIcon Image);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!