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

ImageComboBoxItemCollection.Add(String, Object, Int32) Method

Adds a new item to the current collection.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public int Add(
    string description,
    object value,
    int imageIndex
)

#Parameters

Name Type Description
description String

A String value that specifies the new item’s caption. This value is assigned to the item’s ImageComboBoxItem.Description property.

value Object

A Object that specifies the value associated with the new item. This value is assigned to the item’s ComboBoxItem.Value property.

imageIndex Int32

An integer value that specifies the index of the image linked to the new item. This value is assigned to the item’s ImageComboBoxItem.ImageIndex property.

#Returns

Type Description
Int32

The position to which the new element was inserted.

See Also