Constructor KeyGesture
KeyGesture(Key)
Initializes a new instance of the KeyGesture class with key value.
public KeyGesture(Key key)
Parameters
key
KeyKey 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
key
KeyKey definition.
modifiers
ModifierKeysModifiers 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
key
KeyKey definition.
modifiers
ModifierKeysModifiers for the key.
displayString
stringDisplay 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
key
KeyKey definition.
modifiers
ModifierKeysModifiers for the key.
validateGesture
boolIf 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
key
KeyKey definition.
modifiers
ModifierKeysModifiers for the key.
displayString
stringDisplay string for the key and modifiers.
validateGesture
boolIf true, throws an exception if the key and modifier are not valid.