CharacterReceivedEventArgs.KeyCode Property

Definition

Gets the virtual-key code of the character received by the input queue.

public:
 property unsigned int KeyCode { unsigned int get(); };
uint32_t KeyCode();
public uint KeyCode { get; }
var uInt32 = characterReceivedEventArgs.keyCode;
Public ReadOnly Property KeyCode As UInteger

Property Value

UInt32

unsigned int

uint32_t

The character in UTF-16 encoding.

Remarks

Each supplementary character consists of a surrogate pair sent as two separate events.

Apps do not receive this event when an Input Method Editor (IME) is enabled. The Input Method Editor (IME) handles all keyboard input and sets Handled to true.

Applies to

See also