Sign in Join
FPDoc Onlineexperiment

TListItem.Caption property

Member of TListItempublicIn unit ComCtrls

Caption - the name given to this item on the list.

Declaration

pascal
property Caption: string read GetCaption write SetCaption;

Description

Caption is a String property with the text displayed for the list item. It is also used as the Name displayed for the class instance in the Lazarus Object Inspector.

The property value is assigned when TCustomListView.AddItem creates the TListItem instance in its Items property. Changing the value for the property causes the list view control to be notified when WSUpdateAllowed returns True.

Caption is used in the TCustomListView.DrawItem method to draw the text for the list item. It provides the initial value displayed when the editor is activated for an item on the list view control, and is updated when editing is completed.

See also

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