Class ShortcutAttribute
Used to define shortcuts for the actions.
Implements
Inherited Members
Namespace: SdlSdl.DesktopIntegrationApiExtensions
Assembly: Sdl.Desktop.IntegrationApi.Extensions.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class ShortcutAttribute : AuxiliaryExtensionAttribute, _Attribute
Remarks
This attribute can be used in conjunction with the ActionAttribute attributes.
Constructors
ShortcutAttribute(Keys)
Initialize the instance of this attribute using a specified shortcut.
Declaration
public ShortcutAttribute(Keys shortcut)
Parameters
Type | Name | Description |
---|---|---|
Keys | shortcut | The shortcut to use. |
Properties
Shortcut
Gets or sets the shortcut.
Declaration
public Keys Shortcut { get; set; }
Property Value
Type | Description |
---|---|
Keys | The shortcut. |