All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ContextItemCollectionOptions.Clone() Method

Returns a copy of a ContextItemCollectionOptions object.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.1.dll

Declaration

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

Returns

Type Description
ContextItemCollectionOptions

A copy of a ContextItemCollectionOptions object.

Remarks

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

using 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