RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListItem.Assign Method

Copies the properties of another list item.

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

It the Source parameter is a TListItem object, Assign copies its Caption, Data, ImageIndex, OverlayIndex, StateIndex, and SubItems properties. Otherwise, Assign calls the inherited method so that any object that copies properties to a list item in its AssignTo method can do so. 

 

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