Back to Devexpress

ContextItemCollectionOptions.Clone() Method

windowsforms-devexpress-dot-utils-dot-contextitemcollectionoptions.md

latest2.1 KB
Original Source

ContextItemCollectionOptions.Clone() Method

Returns a copy of a ContextItemCollectionOptions object.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public virtual ContextItemCollectionOptions Clone()
vb
Public Overridable Function Clone As ContextItemCollectionOptions

Returns

TypeDescription
ContextItemCollectionOptions

A copy of a ContextItemCollectionOptions object.

|

Remarks

Use this method if you need to obtain a ContextItemCollection‘s settings.

csharp
using DevExpress.Utils;
// ...
pictureEdit2.Properties.ContextButtonOptions = 
    pictureEdit1.Properties.ContextButtonOptions.Clone();
vb
Imports DevExpress.Utils
' ...
pictureEdit2.Properties.ContextButtonOptions = _
    pictureEdit1.Properties.ContextButtonOptions.Clone()

Note that the target ContextItemCollection needs to contain at least one ContextItem for assigned ContextItemCollectionOptions to take effect.

See Also

ContextItemCollectionOptions Class

ContextItemCollectionOptions Members

DevExpress.Utils Namespace