TCustomListView.AddItem procedure
Adds a list item with the specified caption and optional object.
Declaration
procedure AddItem(Item: string; AObject: TObject)Arguments
Item | Caption for the new list item. |
AObject | Optional object instance for the list item. |
Description
AddItem is a method used to create and store a new
TListItem instance in the Items container. AddItem calls the Add
in Items to create the TListItem instance and store it in the list storage
for the container.
Item contains the text used as the Caption for the list item. AObject is a object instance derived from TObject, and its address is stored in the Data property for the list item.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
