Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ImageComboBoxItem(String, Int32) Constructor

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public ImageComboBoxItem(
    string description,
    int imageIndex
)

#Parameters

Name Type Description
description String

The string to initialize the item’s ImageComboBoxItem.Description property.

imageIndex Int32

The value to initialize the ImageComboBoxItem.ImageIndex property.

#Remarks

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

The ComboBoxItem.Value property is set to null.

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

See Also