KeyGesture Class
Defines a keyboard shortcut combination.
public class KeyGesture
- Inheritance:
- object object
Constructors
KeyGesture(Keys, ModifierKeys)
Initializes a new instance of the KeyGesture
class.
public KeyGesture(Keys key, ModifierKeys modifiers)
Parameter | Type | Description |
---|---|---|
key | Keys | The key associated with this KeyGesture. |
modifiers | ModifierKeys | The modifier keys associated with this KeyGesture. |
Properties
Key
Gets the key associated with this KeyGesture.
Modifiers
Gets the modifier keys associated with this KeyGesture.
public ModifierKeys Modifiers { get; }
Property Value
- ModifierKeys:
The modifier keys associated with this KeyGesture.
Methods
Matches(Keys)
Returns whether the specified Keys from a a key event match this gesture.
ToString()
Converts the object to a String
.