Bagikan melalui


KeyInterop.KeyFromVirtualKey(Int32) Metode

Definisi

Mengonversi Virtual-Key Win32 menjadi WPF Key.

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

Parameter

virtualKey
Int32

Kunci virtual yang akan dikonversi.

Mengembalikan

Key

Kunci WPF.

Berlaku untuk