ComboBoxItem(Object) Constructor
Initializes a new instance of the ComboBoxItem class and sets its ComboBoxItem.Value to the specified parameter.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
val | Object | An object to initialize the ComboBoxItem.Value property. |
Remarks
The constructor creates a new instance of the ComboBoxItem class and initializes the ComboBoxItem.Value property with the specified object.
Do not create ComboBoxItem objects in order to add items for the ComboBoxEdit control. Instead, add objects representing items explicitly to the collection, for instance, using the ComboBoxItemCollection.Add method.
The current constructor is automatically invoked when creating items for the image combo box editor. See the ImageComboBoxItem class for more information.