Back to Devexpress

EditorButton.Shortcut Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-editorbutton-041f2a14.md

latest2.2 KB
Original Source

EditorButton.Shortcut Property

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

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public virtual KeyShortcut Shortcut { get; set; }
vb
<DXCategory("Behavior")>
Public Overridable Property Shortcut As KeyShortcut

Property Value

TypeDescription
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. 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

ButtonClick

Changed

EditorButton Class

EditorButton Members

DevExpress.XtraEditors.Controls Namespace