Vcl.ComCtrls.TComboExItem.SelectedImageIndex
Delphi
property SelectedImageIndex: TImageIndex read FSelectedImageIndex write SetSelectedImageIndex default -1;
C++
__property System::Uitypes::TImageIndex SelectedImageIndex = {read=FSelectedImageIndex, write=SetSelectedImageIndex, default=-1};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboExItem |
説明
項目の選択時にその項目に関連付けられたイメージを指定します。
SelectedImageIndex プロパティを設定すると,項目の選択時にその項目の横に表示するイメージを指定できます。SelectedImageIndex は,コンボボックスの Images プロパティへのインデックスです。
項目が非選択の場合,コンボボックスには ImageIndex プロパティで指定したイメージがかわりに表示されます。SelectedImageIndex が -1 の場合,項目の選択時でも ImageIndex プロパティで指定したイメージがコンボボックスに表示されます。
メモ: SelectedImageIndex で指定したイメージの一部をマスクするには,OverlayImageIndex プロパティを使ってオーバーレイマスクを指定します。