Vcl.ComCtrls.TComboBoxExStrings.AddItem
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, Vcl::Controls::TCustomData Data);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboBoxExStrings |
説明
拡張コンボ ボックスに TComboExItem 項目を追加します。
Add メソッドを呼び出すと拡張コンボ ボックスに新しい項目を追加でき、その項目のキャプション、画像、インデントおよびデータの指定が可能です。 AddItem パラメータの一覧を以下の表に示します。
| パラメータ | 説明 |
|---|---|
|
Caption |
項目を識別するテキストを示します。 |
|
ImageIndex |
拡張コンボ ボックスの項目のための画像インデックスを示します。 |
|
SelectedImageIndex |
拡張コンボ ボックスの項目のために選択された画像インデックスを示します。 |
|
OverlayImageIndex |
透過性に使用するオーバーレイの白黒画像の画像インデックスを示します。 |
|
Indent |
拡張コンボ ボックスの画像インデントを示します。 |
|
Data |
ユーザー提供データ。 |