Condividi tramite


Key

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the keyboard key associated with an event.

value = eventargs.Key

Property Value

Type: Key Enumeration

The key that is referenced by the event.

This property is technically read/write, but should be considered read-only because there is no reason to change the reported information. There is no default.

Managed Equivalent

Key

Remarks

Check the Ctrl and Shift properties to determine whether the key event is a key combination.

Applies To

KeyboardEventArgs