Adds an icon to the image list.
Source position: imglist.pp line 348
public function TCustomImageList.AddIcon( |
Image: TCustomIcon |
):Integer; |
Image |
|
The Icon to be added. |
The index of the added icon, -1 if unsuccessful.
AddIcon is used to add the TIcon instance in the Image parameter to the image list. AddIcon calls InsertIcon to store the Image at the ordinal position represented by the Count property. The return value contains the index of the newly added icon, or -1 if the icon could not be added to the list.
Use the Add or AddMasked method to store a TCustomBitmap descendant in the image list.
|
Inserts an Icon into each of the resolutions for the image list. |
|
|
Number of images stored in the default resolution for the image list. |
Lazarus Component Library (LCL) | Version 3.99-1b97b99691 (2024-09-01) | Home |