Back to Devexpress

ComboBoxItemCollection.Remove(Object) Method

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-comboboxitemcollection-dot-remove-x28-system-dot-object-x29.md

latest2.1 KB
Original Source

ComboBoxItemCollection.Remove(Object) Method

Removes the specified object from the collection.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void Remove(
    object item
)
vb
Public Overridable Sub Remove(
    item As Object
)

Parameters

NameTypeDescription
itemObject

The item to remove from the collection.

|

Remarks

Use the Remove method to remove a specific item from the collection. When an item is removed, all subsequent elements are moved up one position in the collection.

To add a new item to the collection, use the ComboBoxItemCollection.Add, ComboBoxItemCollection.AddRange and ComboBoxItemCollection.Insert methods.

See Also

Add(Object)

AddRange

Insert(Int32, Object)

ComboBoxItemCollection Class

ComboBoxItemCollection Members

DevExpress.XtraEditors.Controls Namespace