Share via


KeyEventArgs.VirtualKey Property

Definition

Gets the virtual-key that maps to the key that was pressed.

public:
 property VirtualKey VirtualKey { VirtualKey get(); };
VirtualKey VirtualKey();
public VirtualKey VirtualKey { get; }
var virtualKey = keyEventArgs.virtualKey;
Public ReadOnly Property VirtualKey As VirtualKey

Property Value

The virtual-key that maps to the key that was pressed.

Applies to

See also