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

被查询的按钮。

返回

按钮的状态。

适用于