Skip to main content

EditorButton.Assign(EditorButton) Method

Copies all properties of the specified button to the current EditorButton object.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual void Assign(
    EditorButton source
)

Parameters

Name Type Description
source EditorButton

The source EditorButton object whose properties must be copied.

Remarks

The Assign method copies all properties of the specified button to the current EditorButton object. The method allows you to have several buttons with the same property values (caption, image, kind, width, shortcut, etc.).

Note: if several buttons are assigned the same shortcut, then pressing those keys invokes the ButtonClick event for all of these buttons in turn.

See Also