TcxCustomBarEditItem.ItemIndex Property
Specifies the selected item in a supported combo box editor when it is embedded in the toolbar editor item.
Declaration
property ItemIndex: Integer read; write; default -1;
Property Value
Type | Description |
---|---|
Integer | The index of the selected item in an associated combo box editor. |
Remarks
Use the ItemIndex
property to switch between combo box items when one of the following combo box editors is embedded in the toolbar editor item:
PropertiesClass[1] Value | Embedded Combo Box Editor | Description |
---|---|---|
TcxComboBoxProperties | TcxComboBox | A general-purpose combo box editor. |
TcxCheckComboBoxProperties | TcxCheckComboBox | A combo box editor that can display items with check boxes. |
TcxColorComboBoxProperties | TcxColorComboBox | A combo box editor designed to select colors. |
TcxFontNameComboBoxProperties | TcxFontNameComboBox | A combo box editor designed to select font typefaces. |
TcxImageComboBoxProperties | TcxImageComboBox | A combo box editor whose items can display text and images. |
TcxMRUEditProperties | TcxMRUEdit | A single-line text editor that displays a list of most recently used (MRU) items in a drop-down window. |
Limitations
The ItemIndex
property is mapped to the ItemIndex property of the currently embedded and supported TcxCustomComboBox descendant. Therefore, the ItemIndex
property value has no effect on all editor classes that are not derived from the TcxCustomComboBox class.
Default Value
The ItemIndex
property’s default value is -1
.
The default ItemIndex
property value indicates that no combo box item is selected.
-
The PropertiesClass property value when the corresponding supported TcxCustomComboBox class descendant is embedded into the toolbar editor item.