Back to Devexpress

ComboBoxItemCollection Class

windowsforms-devexpress-dot-xtraeditors-dot-controls-13060c22.md

latest2.6 KB
Original Source

ComboBoxItemCollection Class

Represents a collection of items within a combo box editor.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

The following members 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

Object CollectionBase ComboBoxItemCollection ImageComboBoxItemCollection

See Also

ComboBoxItemCollection Members

Items

DevExpress.XtraEditors.Controls Namespace