Vcl.ComCtrls.TListItems.AddItem
Delphi
function AddItem(Item: TListItem; Index: Integer = -1): TListItem;
C++
TListItem* __fastcall AddItem(TListItem* Item, int Index = 0xffffffff);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TListItems |
Description
Adds an item in a specified location.
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.