Vcl.ComCtrls.TComboBoxExStrings.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 TComboBoxExStrings

Description

Adds a TComboExItem item to the extended combo box.

Call Add to add a new item to the extended combo box. You can specify the caption, image, indent and data of the new item. The following table lists the AddItem parameters:


Parameter Description

Caption

Specifies the text that identifies the item.

ImageIndex

Specifies the image index for the extended combo box item.

SelectedImageIndex

Specifies the selected image index for the extended combo box item.

OverlayImageIndex

Specifies the image index of an overlaid monochrome image used for transparency.

Indent

Specifies the image indentation in the extended combo box.

Data

User-supplied data.


See Also