Bagikan melalui


KeyInterop.VirtualKeyFromKey(Key) Metode

Definisi

Mengonversi WPF Key menjadi Win32 Virtual-Key.

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

Parameter

key
Key

WPF yang akan dikonversi.

Mengembalikan

Kunci Virtual Win32.

Berlaku untuk