KeyInterop.VirtualKeyFromKey(Key) 方法

定义

将 WPF Key 转换为 Win32 虚拟密钥。

public:
 static int VirtualKeyFromKey(System::Windows::Input::Key key);
public static int VirtualKeyFromKey (System.Windows.Input.Key key);
static member VirtualKeyFromKey : System.Windows.Input.Key -> int
Public Shared Function VirtualKeyFromKey (key As Key) As Integer

参数

key
Key

要转换的 WPF。

返回

Win32 虚拟密钥。

适用于