Vcl.ComCtrls.TComboExItem.SelectedImageIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SelectedImageIndex: TImageIndex read FSelectedImageIndex  write SetSelectedImageIndex default -1;

C++

__property System::Uitypes::TImageIndex SelectedImageIndex = {read=FSelectedImageIndex, write=SetSelectedImageIndex, default=-1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TComboExItem

Description

Identifies the image associated with this item when it is selected.

Set SelectedImageIndex to specify the image that appears beside this item's text when it is selected. SelectedImageIndex is an index into the Images property of the combo box.

When the item is not selected, the combo box displays the image specified by the ImageIndex property instead. If SelectedImageIndex is –1, the combo box also displays the image identified by the ImageIndex property when the item is selected.

Note: To mask out portions of the image that SelectedImageIndex specifies, you can identify an overlay mask using the OverlayImageIndex property.

See Also