Vcl.ImgList.TCustomImageList.Assign
Delphi
procedure Assign(Source: TPersistent); override;
C++
virtual void __fastcall Assign(System::Classes::TPersistent* Source);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
Description
Copies the information from one image list to another.
Use this method to copy another object's information to the image list.
If Source is another image list (TCustomImageList descendant), Assign discards any current image information and replaces it with the information from Source.
If Source is nil (Delphi) or NULL (C++), Assign clears the image list.
If Source is any other type of object, Assign calls its inherited method, which can copy from any source object that implements a way to copy to an image list in its AssignTo method.