A newer version of this page is available. Switch to the current version.

EditorButton.Shortcut Property

Gets or sets a shortcut used to activate the button's functionality.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
public virtual KeyShortcut Shortcut { get; set; }

Property Value

Type Description
KeyShortcut

The KeyShortcut object specifying the shortcut for the current button.

Remarks

Use the Shortcut property to assign a shortcut to a button. In this case, when editing the editor's value the end-user can press the corresponding keys to invoke the ButtonClick event for the current button. In order to handle clicking the button, see the RepositoryItemButtonEdit.ButtonClick event for a ButtonEdit control.

If several buttons are assigned the same shortcut, pressing corresponding keys invoke the ButtonClick event in turn for every button.

When the property value is changed, the button's EditorButton.Changed event is fired.

See Also