RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListBox.AddItem Method

Adds an item to the list box

Pascal
procedure AddItem(Item: String; AObject: TObject); override;
C++
virtual __fastcall AddItem(AnsiString Item, TObject * AObject);

Call AddItem to add a new item to the end of the list. 

Item is the text of the item to add. 

AObject is the object associated with the new item. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!