Show / Hide Table of Contents

Class KeyEventArgs

Arguments for key event

Inheritance
System.Object
RoutedEventArgs
InputEventArgs
KeyboardEventArgs
KeyEventArgs
Inherited Members
KeyboardEventArgs.State
InputEventArgs.Timestamp
RoutedEventArgs.RoutedEvent
RoutedEventArgs.Handled
RoutedEventArgs.Source
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class KeyEventArgs : KeyboardEventArgs

Constructors

KeyEventArgs(KeyCode, KeyboardStateBase, Double, RoutedEvent)

Initializes a new instance of the KeyEventArgs class.

Declaration
public KeyEventArgs(KeyCode key, KeyboardStateBase state, double timestamp, RoutedEvent routedEvent)
Parameters
Type Name Description
EmptyKeys.UserInterface.Input.KeyCode key

The key.

EmptyKeys.UserInterface.Input.KeyboardStateBase state

The state.

System.Double timestamp

The time stamp.

RoutedEvent routedEvent

The routed event.

KeyEventArgs(KeyCode, KeyboardStateBase, Double, RoutedEvent, Object)

Initializes a new instance of the KeyEventArgs class.

Declaration
public KeyEventArgs(KeyCode key, KeyboardStateBase state, double timestamp, RoutedEvent routedEvent, object source)
Parameters
Type Name Description
EmptyKeys.UserInterface.Input.KeyCode key

The key.

EmptyKeys.UserInterface.Input.KeyboardStateBase state

The state.

System.Double timestamp

The time stamp.

RoutedEvent routedEvent

The routed event.

System.Object source

The source.

Properties

Key

Gets the key.

Declaration
public KeyCode Key { get; }
Property Value
Type Description
EmptyKeys.UserInterface.Input.KeyCode

The key.

Methods

InvokeEventHandler(Delegate, Object)

Invokes the event handler.

Declaration
protected override void InvokeEventHandler(Delegate handler, object target)
Parameters
Type Name Description
System.Delegate handler

The handler.

System.Object target

The target.

Overrides
KeyboardEventArgs.InvokeEventHandler(Delegate, Object)
Back to top Generated by DocFX