Vcl.ImageCollection.TImageCollection.Add
Delphi
procedure Add(AName: String; const AFileName: String); overload;
procedure Add(AName: String; Stream: TStream); overload;
procedure Add(AName: String; AInstance: THandle; const AResourceName: String); overload;
procedure Add(AName: String; AInstance: THandle; const AResourceName: String; ASuffixes: array of string); overload;
C++
void __fastcall Add(System::UnicodeString AName, const System::UnicodeString AFileName)/* overload */;
void __fastcall Add(System::UnicodeString AName, System::Classes::TStream* Stream)/* overload */;
void __fastcall Add(System::UnicodeString AName, NativeUInt AInstance, const System::UnicodeString AResourceName)/* overload */;
void __fastcall Add(System::UnicodeString AName, NativeUInt AInstance, const System::UnicodeString AResourceName, System::UnicodeString *ASuffixes, const int ASuffixes_High)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ImageCollection.pas Vcl.ImageCollection.hpp |
Vcl.ImageCollection | TImageCollection |
Description
This component adds a new item with specified name if it does not exist in collection.
Use Add component in different scenarios. Set it up with different parameters to load a new item, the parameters depend on the source image.
Source Image | Description |
---|---|
Specified file | Specified file. Add a new item with specified name if it does not exist in collection. Then add new source image loaded from the specified file. |
Stream | Add a new item with specified name if it does not exist in collection. Then add new source image loaded from the stream. |
Resource | Add a new item with specified name if it does not exist in collection. Then add new source image loaded from the resource name. |
Resource defined by array or suffix | Add a new item with specified name if it does not exist in collection. Then add new source image loaded from the resource names, which defined by array of suffixes. |