共用方式為


KeyboardDevice.GetKeyStatesFromSystem(Key) 方法

定義

在衍生類別中覆寫時,取得指定之 KeyStatesKey

protected:
 abstract System::Windows::Input::KeyStates GetKeyStatesFromSystem(System::Windows::Input::Key key);
protected abstract System.Windows.Input.KeyStates GetKeyStatesFromSystem (System.Windows.Input.Key key);
abstract member GetKeyStatesFromSystem : System.Windows.Input.Key -> System.Windows.Input.KeyStates
Protected MustOverride Function GetKeyStatesFromSystem (key As Key) As KeyStates

參數

key
Key

要進行檢查的按鍵。

傳回

所指定之按鍵的按鍵狀態集。

適用於