Vcl.ComCtrls.TComboExItem.SelectedImageIndex

提供: RAD Studio API Documentation
移動先: 案内検索

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 プロパティを使ってオーバーレイマスクを指定します。

関連項目