Skip to main content
A newer version of this page is available. .

ComboBoxItemCollection.Assign(ComboBoxItemCollection) Method

Copies items from the source collection to the current collection.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.2.dll

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