In This Article

KeyBinding Class

Represents a key binding.

public class KeyBinding
Inheritance:
object object

Constructors

KeyBinding(ModifierKeys, Keys)

Initializes a new instance of the KeyBinding class.

public KeyBinding(ModifierKeys modifiers, Keys key)
Parameter Type Description
modifiers ModifierKeys

The modifier keys.

key Keys

The key.

Properties

Key

Gets the key.

public Keys Key { get; }

Property Value

Keys:

The key.

Modifiers

Gets the modifier keys.

public ModifierKeys Modifiers { get; }

Property Value

ModifierKeys:

The modifier keys.

Inherited Members