RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListItems.AddItem Method

Adds an item in a specified location.

Pascal
function AddItem(Item: TListItem; Index: Integer = -1): TListItem;
C++
__fastcall TListItem AddItem(TListItem Item, int Index = -1);

Call AddItem to add an Item at any place in the list. The properties of Item are duplicated if Item is not nil. Index is location of the added item; if Index is negative, the TListItem is appended to the end of the list. 

AddItem returns the TListItem that was added. 

 

Add 

Delete 

Insert

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!