In This Article

InputKeyEventArgs Class

Provides event data for key-based input events.

public class InputKeyEventArgs : EventArgs
Inheritance:
object EventArgs object

Constructors

InputKeyEventArgs(KeyEventArgs)

Provides event data for key-based input events.

public InputKeyEventArgs(KeyEventArgs e)
Parameter Type Description
e KeyEventArgs

The wrapped event arguments.

Properties

Handled

Indicates whether the event has been handled.

public bool Handled { get; set; }

Property Value

bool:

true if the event has been handled; otherwise, false.

Key

The keyboard key associated with the event.

public Key Key { get; }

Property Value

Key

ModifierKeys

The modifier keys that are currently pressed.

public ModifierKeys ModifierKeys { get; }

Property Value

ModifierKeys

OriginalSource

The original source of the event.

public object OriginalSource { get; }

Property Value

object

WrappedEventArgs

The wrapped event arguments.

public KeyEventArgs WrappedEventArgs { get; }

Property Value

KeyEventArgs

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods