Vcl.ComCtrls.TComboExItems.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, void * Data);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboExItems |
説明
コレクションに新規の項目を追加して,そのプロパティを初期化します。
AddItem メソッドを呼び出すと,コレクションに新規の項目を追加できます。AddItem は,TListControlItems インスタンスの作成時に指定された型のオブジェクトをインスタンス化します。次に,Caption,ImageIndex,SelectedImageIndex,OverlayImageIndex,Indent,および Data パラメータの値を同じ名前の TComboExItem プロパティに代入します。