InputKeyEventArgs Class
Provides event data for key-based input events.
public class InputKeyEventArgs : EventArgs
Constructors
InputKeyEventArgs(KeyEventArgs)
Initializes a new instance of the InputKeyEventArgs class.
public InputKeyEventArgs(KeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | KeyEventArgs | The wrapped event arguments. |
Properties
Handled
Gets or set whether the event has been handled.
public bool Handled { get; set; }
Property Value
- bool:
true
if the event has been handled; otherwise,false
.
Key
Gets the keyboard key associated with the event.
public Key Key { get; }
Property Value
- Key:
The keyboard key associated with the event.
ModifierKeys
Gets the modifier keys that are currently pressed.
public ModifierKeys ModifierKeys { get; }
Property Value
- ModifierKeys:
The modifier keys that are currently pressed.
OriginalSource
Gets the original source of the event.
WrappedEventArgs
Gets the wrapped event arguments.
public KeyEventArgs WrappedEventArgs { get; }
Property Value
- KeyEventArgs:
The wrapped event arguments.
Methods
ToString()
Returns a string representation of this instance.