Skip to main content

ImageComboBoxItemCollection.Add(String, Object, Int32) Method

Adds a new item to the current collection.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v23.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