Sign in Join
FPDoc Onlineexperiment

TListItem.Assign procedure

Member of TListItempublicIn unit ComCtrls

Copies values from the specified persistent object into the current class instance.

Declaration

pascal
procedure Assign(ASource: TPersistent); override

Arguments

ASource

Persistent object with values copied in the method.

Description

Assign is an overridden method used copy property values from the persistent object in ASource into the current class instance. When ASource is a TListItem descendant, the following property values are copied:

  • Caption
  • Data
  • ImageIndex
  • SubItems

If ASource is not descended from TListItem, the inherited method is called to handle the assignment.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.