Skip to main content

ImageComboBoxItemCollection.Item[Int32] Property

Gets or sets an item at the specified position.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public ImageComboBoxItem this[int index] { get; set; }

Parameters

Name Type Description
index Int32

The zero-based index of the item to return.

Property Value

Type Description
ImageComboBoxItem

The item at the specified position.

Remarks

You can use this property to access an item at the specified position. To add an item to the collection, see the ImageComboBoxItemCollection.Add, ImageComboBoxItemCollection.AddRange and ComboBoxItemCollection.Insert methods.

If index denotes a value greater than Count - 1, an exception of the ArgumentOutOfRangeException type is thrown.

The ComboBoxItemCollection.IndexOf method performs the opposite operation. It allows you to return the position of a specific item in the current collection.

See Also