Table of Contents

Constructor KeyGesture

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

KeyGesture(Key)

Initializes a new instance of the KeyGesture class with key value.

public KeyGesture(Key key)

Parameters

key Key

Key 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 Key

Key definition.

modifiers ModifierKeys

Modifiers 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 Key

Key definition.

modifiers ModifierKeys

Modifiers for the key.

displayString string

Display 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 Key

Key definition.

modifiers ModifierKeys

Modifiers for the key.

validateGesture bool

If 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 Key

Key definition.

modifiers ModifierKeys

Modifiers for the key.

displayString string

Display string for the key and modifiers.

validateGesture bool

If true, throws an exception if the key and modifier are not valid.