MouseButtonEventArgs 构造函数

定义

初始化 MouseButtonEventArgs 类的新实例。

重载

MouseButtonEventArgs(MouseDevice, Int32, MouseButton)

使用指定的 MouseButtonEventArgs、时间戳和 MouseDevice 初始化 MouseButton 类的新实例。

MouseButtonEventArgs(MouseDevice, Int32, MouseButton, StylusDevice)

使用指定的 MouseButtonEventArgs、时间戳、MouseDeviceMouseButton 初始化 StylusDevice 类的新实例。 .

MouseButtonEventArgs(MouseDevice, Int32, MouseButton)

使用指定的 MouseButtonEventArgs、时间戳和 MouseDevice 初始化 MouseButton 类的新实例。

public:
 MouseButtonEventArgs(System::Windows::Input::MouseDevice ^ mouse, int timestamp, System::Windows::Input::MouseButton button);
public MouseButtonEventArgs (System.Windows.Input.MouseDevice mouse, int timestamp, System.Windows.Input.MouseButton button);
new System.Windows.Input.MouseButtonEventArgs : System.Windows.Input.MouseDevice * int * System.Windows.Input.MouseButton -> System.Windows.Input.MouseButtonEventArgs
Public Sub New (mouse As MouseDevice, timestamp As Integer, button As MouseButton)

参数

mouse
MouseDevice

与此事件关联的逻辑鼠标设备。

timestamp
Int32

发生输入的时间。

button
MouseButton

要描述其状态的鼠标按钮。

另请参阅

适用于

MouseButtonEventArgs(MouseDevice, Int32, MouseButton, StylusDevice)

使用指定的 MouseButtonEventArgs、时间戳、MouseDeviceMouseButton 初始化 StylusDevice 类的新实例。 .

public:
 MouseButtonEventArgs(System::Windows::Input::MouseDevice ^ mouse, int timestamp, System::Windows::Input::MouseButton button, System::Windows::Input::StylusDevice ^ stylusDevice);
public MouseButtonEventArgs (System.Windows.Input.MouseDevice mouse, int timestamp, System.Windows.Input.MouseButton button, System.Windows.Input.StylusDevice stylusDevice);
new System.Windows.Input.MouseButtonEventArgs : System.Windows.Input.MouseDevice * int * System.Windows.Input.MouseButton * System.Windows.Input.StylusDevice -> System.Windows.Input.MouseButtonEventArgs
Public Sub New (mouse As MouseDevice, timestamp As Integer, button As MouseButton, stylusDevice As StylusDevice)

参数

mouse
MouseDevice

与此事件关联的逻辑鼠标设备。

timestamp
Int32

事件发生的时间。

button
MouseButton

与该事件关联的按钮。

stylusDevice
StylusDevice

与该事件关联的触笔设备。

另请参阅

适用于