RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.Assign Method

Copies the information from one image list to another.

Pascal
procedure Assign(Source: TPersistent); override;
C++
virtual __fastcall Assign(TPersistent * Source);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!