API:Vcl.VirtualImageList.TVirtualImageList.Add
Delphi
procedure Add(const ACategory: String; AStartIndex, AEndIndex: Integer; AddDisabledCopies: Boolean = False); overload;
procedure Add(AName: String; ACollectionIndex: Integer; AddDisabledCopy: Boolean = False); overload;
procedure Add(AName: String; const ACollectionName: String; AddDisabledCopy: Boolean = False); overload;
C++
HIDESBASE void __fastcall Add(const System::UnicodeString ACategory, int AStartIndex, int AEndIndex, bool AddDisabledCopies = false)/* overload */;
HIDESBASE void __fastcall Add(System::UnicodeString AName, int ACollectionIndex, bool AddDisabledCopy = false)/* overload */;
HIDESBASE void __fastcall Add(System::UnicodeString AName, const System::UnicodeString ACollectionName, bool AddDisabledCopy = false)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.VirtualImageList.pas Vcl.VirtualImageList.hpp |
Vcl.VirtualImageList | TVirtualImageList |
Description
Adds an Image and its Mask to the image list object.
Vcl.VirtualImageList.TVirtualImageList.Add inherits from Vcl.ImgList.TCustomImageList.Add. All content below this line refers to Vcl.ImgList.TCustomImageList.Add.
Adds an Image and its Mask to the image list object.
Use the Add method to add images with their masks to an image list. It returns the index of the added image, or -1 if it fails. When the Masked property of the image list is false, the second bitmap is ignored; it can be set to nil (Delphi) or NULL (C++).
See Also
Code Examples