Constructor KeyGesture
KeyGesture(Key)
Initializes a new instance of the KeyGesture class with key value.
public KeyGesture(Key key)
Parameters
keyKeyKey definition.
KeyGesture(Key, ModifierKeys)
Initializes a new instance of the KeyGesture class with key and key modifiers values.
public KeyGesture(Key key, ModifierKeys modifiers)
Parameters
keyKeyKey definition.
modifiersModifierKeysModifiers for the key.
KeyGesture(Key, ModifierKeys, string)
Initializes a new instance of the KeyGesture class with key, key modifiers and display string values.
public KeyGesture(Key key, ModifierKeys modifiers, string displayString)
Parameters
keyKeyKey definition.
modifiersModifierKeysModifiers for the key.
displayStringstringDisplay string for the key with modifiers.
KeyGesture(Key, ModifierKeys, bool)
Initializes a new instance of the KeyGesture class.
public KeyGesture(Key key, ModifierKeys modifiers, bool validateGesture)
Parameters
keyKeyKey definition.
modifiersModifierKeysModifiers for the key.
validateGestureboolIf true, throws an exception if the key and modifier are not valid.
KeyGesture(Key, ModifierKeys, string, bool)
Initializes a new instance of the KeyGesture class.
public KeyGesture(Key key, ModifierKeys modifiers, string displayString, bool validateGesture)
Parameters
keyKeyKey definition.
modifiersModifierKeysModifiers for the key.
displayStringstringDisplay string for the key and modifiers.
validateGestureboolIf true, throws an exception if the key and modifier are not valid.