In This Article

InputKeyEventArgs Class

Provides event data for key-based input events.

public class InputKeyEventArgs : EventArgs
Inheritance:
System.Object System.EventArgs Object

Constructors

InputKeyEventArgs(KeyEventArgs)

Initializes a new instance of the InputKeyEventArgs class.

public InputKeyEventArgs(KeyEventArgs e)
Parameter Type Description
e System.Windows.Input.KeyEventArgs

The wrapped event arguments.

Properties

Handled

Gets or set whether the event has been handled.

public bool Handled { get; set; }

Property Value

System.Boolean:

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

Key

Gets the keyboard key associated with the event.

public Key Key { get; }

Property Value

System.Windows.Input.Key:

The keyboard key associated with the event.

ModifierKeys

Gets the modifier keys that are currently pressed.

public ModifierKeys ModifierKeys { get; }

Property Value

System.Windows.Input.ModifierKeys:

The modifier keys that are currently pressed.

OriginalSource

Gets the original source of the event.

public object OriginalSource { get; }

Property Value

System.Object:

The original source of the event.

WrappedEventArgs

Gets the wrapped event arguments.

public KeyEventArgs WrappedEventArgs { get; }

Property Value

System.Windows.Input.KeyEventArgs:

The wrapped event arguments.

Methods

ToString()

Returns a System.String representation of this instance.

public override string ToString()

Returns

System.String:

A System.String representation of this instance.

Inherited Members

  • System.EventArgs.Empty
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()