ActionBase.Shortcut Property
Defines the keyboard shortcut used to execute the current Action. Has effect in WinForms applications only.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Default | Description |
---|---|---|
String | null | A string holding the shortcut used to execute the current Action in a WinForms application. |
Remarks
You can use this property to assign shortcuts for Actions in code. The Application Model considers the passed value as a default value for its IModelAction.Shortcut property. You can override this value in the ActionDesign | Actions | <Action> of the Model Editor.
Assign one of the following string values to the Shortcut property:
- A string representation of a System.Windows.Forms.Shortcut enumeration value (for example, CtrlShiftO).
- A string representation of a System.Windows.Forms.Keys enumeration value (for example, LShiftKey).
- Several string representations of System.Windows.Forms.Keys values separated by “+” (for example, Control+Shift+O).
See Also