EditorButton.Shortcut Property

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

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v20.1.dll


public virtual KeyShortcut Shortcut { get; set; }
Public Overridable Property Shortcut As KeyShortcut

Property Value

Type Description

The KeyShortcut object specifying the shortcut for the current button.


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. Shortcuts for disabled or invisible buttons are not processed.

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