MouseButtonEventArgs Constructors

Definition

Initializes a new instance of the MouseButtonEventArgs class.

Overloads

MouseButtonEventArgs(MouseDevice, Int32, MouseButton)

Initializes a new instance of the MouseButtonEventArgs class by using the specified MouseDevice, timestamp, and MouseButton.

MouseButtonEventArgs(MouseDevice, Int32, MouseButton, StylusDevice)

Initializes a new instance of the MouseButtonEventArgs class by using the specified MouseDevice, timestamp, MouseButton, and StylusDevice. .

MouseButtonEventArgs(MouseDevice, Int32, MouseButton)

Initializes a new instance of the MouseButtonEventArgs class by using the specified MouseDevice, timestamp, and MouseButton.

C#
public MouseButtonEventArgs(System.Windows.Input.MouseDevice mouse, int timestamp, System.Windows.Input.MouseButton button);

Parameters

mouse
MouseDevice

The logical Mouse device associated with this event.

timestamp
Int32

The time when the input occurred.

button
MouseButton

The mouse button whose state is being described.

See also

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

MouseButtonEventArgs(MouseDevice, Int32, MouseButton, StylusDevice)

Initializes a new instance of the MouseButtonEventArgs class by using the specified MouseDevice, timestamp, MouseButton, and StylusDevice. .

C#
public MouseButtonEventArgs(System.Windows.Input.MouseDevice mouse, int timestamp, System.Windows.Input.MouseButton button, System.Windows.Input.StylusDevice stylusDevice);

Parameters

mouse
MouseDevice

The logical mouse device associated with this event.

timestamp
Int32

The time the event occurred.

button
MouseButton

The button associated with this event.

stylusDevice
StylusDevice

The stylus device associated with this event.

See also

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10