RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComboExItems.AddItem Method

Adds a new item to the collection and initializes its properties.

Pascal
function AddItem(const Caption: String; const ImageIndex: Integer; const SelectedImageIndex: Integer; const OverlayImageIndex: Integer; const Indent: Integer; Data: Pointer): TComboExItem;
C++
__fastcall TComboExItem AddItem(const AnsiString Caption, const int ImageIndex, const int SelectedImageIndex, const int OverlayImageIndex, const int Indent, void * Data);

Call AddItem to add a new item to the collection. Add instantiates an object of the type that was specified when the TListControlItems instance was created. It then assigns the values of the Caption, ImageIndex, SelectedImageIndex, OverlayImageIndex, Indent, and Data parameters to the TComboExItem properties of the same names. 

 

ComboItems 

Delete 

Create 

Add 

Caption 

Data 

ImageIndex 

OverlayImageIndex 

SelectedImageIndex 

Indent

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