Vcl.Controls.TCustomListControl.AddItem
Delphi
procedure AddItem(Item: String; AObject: TObject); virtual; abstract;
C++
virtual void __fastcall AddItem(System::UnicodeString Item, System::TObject* AObject) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TCustomListControl |
Description
Adds an item to the list control.
AddItem adds an item to the end of the list, possibly associating it with a specified object.
Item is the text that is the item's value. This is the string that appears for the item in the list control.
AObject is an object that you can associate with the item. Note that the list control does not take ownership of this object. That is, if you delete the item, the corresponding object is not freed.