Skip to main content

ImageComboBoxItem(Object, Int32) Constructor

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public ImageComboBoxItem(
    object value,
    int imageIndex
)

Parameters

Name Type Description
value Object

The object to initialize the item’s ComboBoxItem.Value property.

imageIndex Int32

The value to initialize the item’s ImageComboBoxItem.ImageIndex property.

Remarks

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

The ImageComboBoxItem.Description property is set to null.

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

See Also