Table of Contents

Constructor KeyGesture

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

KeyGesture(Key)

Creates KeyGesture instance with key value.

public KeyGesture(Key key)

Parameters

key Key

Key definition.

KeyGesture(Key, ModifierKeys)

Creates KeyGesture instance 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)

Creates KeyGesture instance 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)

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 Key

Key definition.

modifiers ModifierKeys

Modifiers for the key.

validateGesture bool

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