ComboBoxItem Class
Serves as the base for the class representing image combo box items.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
Remarks
The ComboBoxItem class is designed to solve two tasks.
First, it is provided for backward compatibility with earlier library versions. In those versions, combo box items were represented by ComboBoxItem objects. The item’s ComboBoxItem.Value property value uniquely identified the item and served as the edit value when the item was selected. Now combo box items can be represented by objects of any type. You can still add items of the ComboBoxItem class to the combo box editor. However, the editor does not store ComboBoxItem items in the collection. Instead, when adding a ComboBoxItem item, the editor fetches the item’s value and adds it to the collection rather than the specified ComboBoxItem object itself.
The second task is to serve as the base for the ImageComboBoxItem class that represents an item in a ImageComboBoxEdit control. The ComboBoxItem.Value property provided by the ComboBoxItem class specifies the image combo box’s edit value when the corresponding item is chosen.