KeyGesture Class
Defines a keyboard shortcut combination.
public class KeyGesture
- Inheritance:
- object object
Constructors
KeyGesture(Keys, ModifierKeys)
Defines a keyboard shortcut combination.
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
The key associated with this KeyGesture.
Modifiers
The modifier keys associated with this KeyGesture.
Methods
Matches(Keys)
Returns whether the specified Keys from a a key event match this gesture.
ToString()
Returns the string representation of this object.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()