Udostępnij za pośrednictwem


KeyInfo Struct

Definition

Represents information of a keystroke.

public value class KeyInfo
public struct KeyInfo
type KeyInfo = struct
Public Structure KeyInfo
Inheritance
KeyInfo

Constructors

KeyInfo(Int32, Char, ControlKeyStates, Boolean)

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

Properties

Character

Gets and set unicode Character of the key.

ControlKeyState

State of the control keys.

KeyDown

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

VirtualKeyCode

Gets and set device-independent key.

Methods

Equals(Object)

Overrides Equals(Object)

GetHashCode()

Overrides GetHashCode()

ToString()

Overloads ToString()

Operators

Equality(KeyInfo, KeyInfo)

Compares two instances for equality.

Inequality(KeyInfo, KeyInfo)

Compares two instances for inequality.

Applies to