共用方式為


MouseDevice.GetButtonState(MouseButton) 方法

定義

取得指定滑鼠按鈕的狀態。

protected:
 System::Windows::Input::MouseButtonState GetButtonState(System::Windows::Input::MouseButton mouseButton);
protected System.Windows.Input.MouseButtonState GetButtonState (System.Windows.Input.MouseButton mouseButton);
member this.GetButtonState : System.Windows.Input.MouseButton -> System.Windows.Input.MouseButtonState
Protected Function GetButtonState (mouseButton As MouseButton) As MouseButtonState

參數

mouseButton
MouseButton

正在查詢的按鈕。

傳回

按鈕的狀態。

適用於