Skip to main content

ComboBoxItemCollection.Assign(ComboBoxItemCollection) Method

Copies items from the source collection to the current collection.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual void Assign(
    ComboBoxItemCollection collection
)

Parameters

Name Type Description
collection ComboBoxItemCollection

The source collection whose items are copied to the current collection.

Remarks

The Assign method removes all items from the current collection and then copies elements from the source collection to the current one. Assign copies object references, not the objects themselves. So items in the both collections will refer to the same data.

The Assign method maintains the object model of the XtraEditors Library and is not intended to be used from your code.

See Also