C# Class System.Windows.Input.KeyInterop

Provides static methods to convert between Win32 VirtualKeys and our Key enum.
Mostrar archivo Open project: apetrovskiy/STUPS Class Usage Examples

Public Methods

Method Description
KeyFromVirtualKey ( int virtualKey ) : Key

Convert a Win32 VirtualKey into our Key enum.

VirtualKeyFromKey ( Key key ) : int

Convert our Key enum into a Win32 VirtualKey.

Method Details

KeyFromVirtualKey() public static method

Convert a Win32 VirtualKey into our Key enum.
public static KeyFromVirtualKey ( int virtualKey ) : Key
virtualKey int
return Key

VirtualKeyFromKey() public static method

Convert our Key enum into a Win32 VirtualKey.
public static VirtualKeyFromKey ( Key key ) : int
key Key
return int