Skip to main content
A newer version of this page is available. .

ImageComboBoxItem(String, Object) Constructor

Creates a new instance of the ImageComboBoxItem class and initializes the item’s value and caption.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public ImageComboBoxItem(
    string description,
    object value
)

Parameters

Name Type Description
description String

The string to initialze the item’s ImageComboBoxItem.Description.

value Object

The value to initialize the item’s ComboBoxItem.Value.

Remarks

The constructor creates a new instance of the ImageComboBoxItem class and initializes the item’s ImageComboBoxItem.Description and ComboBoxItem.Value properties with the specified objects.

The ImageComboBoxItem.ImageIndex property is set to -1.

After an item is created, you can add it to the collection using the ImageComboBoxItemCollection.Add method.

See Also