FMX.ImgList.TCustomImageList.AddOrSet
Delphi
function AddOrSet(const SourceName: string; const Scales: array of Single; const FileNames: array of string; const TransparentColor: TColor = TColors.SysNone; const Width: Integer = 0; const Height: Integer = 0): TImageIndex;
C++
System::Uitypes::TImageIndex __fastcall AddOrSet(const System::UnicodeString SourceName, const float *Scales, const int Scales_High, const System::UnicodeString *FileNames, const int FileNames_High, const System::Uitypes::TColor TransparentColor = (System::Uitypes::TColor)(0x1fffffff), const int Width = 0x0, const int Height = 0x0);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.ImgList.pas FMX.ImgList.hpp |
FMX.ImgList | TCustomImageList |
Description
It adds or replaces several files in the Source collection, and adds the item to the Destination collection if it does not exist.
Note: It returns the number of the new element of Destination or
-1
if it already exists.See Also
FMX.ImgList.TCustomImageList.Source