KeyInterop 類別

定義

提供在 Win32 虛擬按鍵和 Key 列舉之間進行轉換的靜態方法。

public ref class KeyInterop abstract sealed
public static class KeyInterop
type KeyInterop = class
Public Class KeyInterop
繼承
KeyInterop

方法

KeyFromVirtualKey(Int32)

將 Win32 Virtual-Key 轉換成 WPF Key

VirtualKeyFromKey(Key)

將 WPF Key 轉換成 Win32 虛擬金鑰。

適用於