KeyInterop 類別

定義

提供在 Win32 虛擬按鍵和 Key 列舉之間進行轉換的靜態方法。Provides static methods to convert between Win32 Virtual-Keys and the WPF Key enumeration.

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

方法

KeyFromVirtualKey(Int32)

Win32Win32 虛擬按鍵轉換為 WPFWPF KeyConverts a Win32Win32 Virtual-Key into WPFWPF Key.

VirtualKeyFromKey(Key)

WPFWPF Key 轉換為 Win32Win32 虛擬按鍵。Converts a WPFWPF Key into a Win32Win32 Virtual-Key.

適用於