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

ComboBoxItemCollection.Item[Int32] Property

Gets or sets an item at the specified position.

Namespace: DevExpress.XtraEditors.Controls

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