Constructor KeyGesture
KeyGesture(Key)
Creates KeyGesture instance with key value.
public KeyGesture(Key key)
Parameters
key
KeyKey definition.
KeyGesture(Key, ModifierKeys)
Creates KeyGesture instance with key and key modifiers values.
public KeyGesture(Key key, ModifierKeys modifiers)
Parameters
key
KeyKey definition.
modifiers
ModifierKeysModifiers for the key.
KeyGesture(Key, ModifierKeys, string)
Creates KeyGesture instance with key, key modifiers and display string values.
public KeyGesture(Key key, ModifierKeys modifiers, string displayString)
Parameters
key
KeyKey definition.
modifiers
ModifierKeysModifiers for the key.
displayString
stringDisplay string for the key with modifiers.
KeyGesture(Key, ModifierKeys, bool)
Internal constructor used by KeyBinding to avoid key and modifier validation This allows setting KeyBinding.Key and KeyBinding.Modifiers without regard to order.
public KeyGesture(Key key, ModifierKeys modifiers, bool validateGesture)
Parameters
key
KeyKey definition.
modifiers
ModifierKeysModifiers for the key.
validateGesture
boolIf true, throws an exception if the key and modifier are not valid