Vcl.VirtualImageList.TVirtualImageList.Assign

From RAD Studio API Documentation
Jump to: navigation, search

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.VirtualImageList.pas
Vcl.VirtualImageList.hpp
Vcl.VirtualImageList TVirtualImageList

Description

Copies the information from one image list to another.

Vcl.VirtualImageList.TVirtualImageList.Assign inherits from Vcl.ImgList.TCustomImageList.Assign. All content below this line refers to Vcl.ImgList.TCustomImageList.Assign.

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.

See Also