Vcl.ComCtrls.TComboExItems.AddItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddItem(const Caption: string; const ImageIndex, SelectedImageIndex,  OverlayImageIndex, Indent: Integer; Data: TCustomData): TComboExItem;

C++

TComboExItem* __fastcall AddItem(const System::UnicodeString Caption, const int ImageIndex, const int SelectedImageIndex, const int OverlayImageIndex, const int Indent, void * Data);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TComboExItems

Description

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

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.

See Also

Code Examples