Class KeyGesture
Implement gesture for keyboard keys
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class KeyGesture : InputGesture
Constructors
KeyGesture(KeyCode)
Initializes a new instance of the KeyGesture class.
Declaration
public KeyGesture(KeyCode key)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Input.KeyCode | key | The key. |
KeyGesture(KeyCode, ModifierKeys)
Initializes a new instance of the KeyGesture class.
Declaration
public KeyGesture(KeyCode key, ModifierKeys modifiers)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Input.KeyCode | key | The key. |
ModifierKeys | modifiers | The modifiers. |
KeyGesture(KeyCode, ModifierKeys, String)
Initializes a new instance of the KeyGesture class.
Declaration
public KeyGesture(KeyCode key, ModifierKeys modifiers, string displayString)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Input.KeyCode | key | The key. |
ModifierKeys | modifiers | The modifiers. |
System.String | displayString | The display string. |
Properties
DisplayString
Gets the display string.
Declaration
public string DisplayString { get; }
Property Value
Type | Description |
---|---|
System.String | The display string. |
Key
Gets the key.
Declaration
public KeyCode Key { get; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.Input.KeyCode | The key. |
Modifiers
Gets the modifiers.
Declaration
public ModifierKeys Modifiers { get; }
Property Value
Type | Description |
---|---|
ModifierKeys | The modifiers. |
Methods
Matches(InputEventArgs)
Matches input gesture
Declaration
public override bool Matches(InputEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
InputEventArgs | args | The InputEventArgs instance containing the event data. |
Returns
Type | Description |
---|---|
System.Boolean |