RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.AddItem Method

Adds an item to the list control.

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

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. 

 

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