KeyInfo KeyInfo KeyInfo Struct

Definition

Represents information of a keystroke

public struct KeyInfo
type KeyInfo = struct
Public Structure KeyInfo
Inheritance
KeyInfoKeyInfoKeyInfo

Constructors

KeyInfo(Int32, Char, ControlKeyStates, Boolean) KeyInfo(Int32, Char, ControlKeyStates, Boolean) KeyInfo(Int32, Char, ControlKeyStates, Boolean)

Initialize a new instance of the KeyInfo class and defines the VirtualKeyCode, Character, ControlKeyState and KeyDown values.

Properties

Character Character Character

Gets and set unicode Character of the key

ControlKeyState ControlKeyState ControlKeyState

State of the control keys.

KeyDown KeyDown KeyDown

Gets and set the status of whether this instance is generated by a key pressed or released

VirtualKeyCode VirtualKeyCode VirtualKeyCode

Gets and set device-independent key

Methods

Equals(Object) Equals(Object) Equals(Object)

Overrides Equals(Object)

GetHashCode() GetHashCode() GetHashCode()

Overrides GetHashCode()

ToString() ToString() ToString()

Overloads ToString()

Operators

Equality(KeyInfo, KeyInfo) Equality(KeyInfo, KeyInfo) Equality(KeyInfo, KeyInfo)

Compares two instances for equality

Inequality(KeyInfo, KeyInfo) Inequality(KeyInfo, KeyInfo) Inequality(KeyInfo, KeyInfo)

Compares two instances for inequality

Applies to