Vcl.ComCtrls.TCustomListView.AddItem
Delphi
procedure AddItem(Item: String; AObject: TObject); override;
C++
virtual void __fastcall AddItem(System::UnicodeString Item, System::TObject* AObject);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomListView |
Description
Adds an item to the list control.
AddItem adds an item to the end of the list view, possibly associating it with a specified object.
Item is the caption of the item in the list view. that is the item's value. This becomes the value of the new TListItem object's Caption property.
AObject is an object that you can associate with the item. It becomes the value of the new TListItem object's Data property.