ComboBoxItemCollection Class

Represents a collection of items within a combo box editor.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[ListBindable(false)]
public class ComboBoxItemCollection :
    CollectionBase
<ListBindable(False)>
Public Class ComboBoxItemCollection
    Inherits CollectionBase

Related API Members

The following members accept/return ComboBoxItemCollection objects:

Remarks

The collection of items in a ComboBoxEdit editor can be accessed via the repository item's RepositoryItemComboBox.Items property. This property returns a ComboBoxItemCollection object whose members can be used to manage the collection. You can add, remove, access individual items and perform other common collection management tasks using the object's properties and methods.

Individual items are objects which implies that they can be of any type. The control's dropdown list displays textual representations of these objects. When selecting an item, the value representing the item is assigned to the editor's BaseEdit.EditValue property.

Note: to ensure that the editor works correctly, items in the RepositoryItemComboBox.Items collection must be unique objects.

Inheritance

See Also