Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ComboBoxItemCollection.Assign(ComboBoxItemCollection) Method

Copies items from the source collection to the current collection.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.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