Skip to main content

ComboBoxItemCollection.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 object this[int index] { get; set; }

Parameters

Name Type Description
index Int32

The zero-based index of the item to return.

Property Value

Type Description
Object

The item at the specified position.

Remarks

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

If index is a value greater than Count - 1, an ArgumentOutOfRangeException type exception 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