Class MouseEventArgs
public sealed class MouseEventArgs : EventArgs
- Inheritance
-
MouseEventArgs
- Inherited Members
Remarks
This code was taken from the .NET Framework.
Constructors
MouseEventArgs(MouseButtons, int, int, int, int)
Initializes a new instance of the MouseEventArgs class.
public MouseEventArgs(MouseButtons button, int clicks, int x, int y, int delta)
Parameters
button
MouseButtonsclicks
intx
inty
intdelta
int
Properties
Button
Gets which mouse button was pressed.
public MouseButtons Button { get; }
Property Value
Clicks
Gets the number of times the mouse button was pressed and released.
public int Clicks { get; }
Property Value
Delta
Gets a signed count of the number of detents the mouse wheel has rotated.
public int Delta { get; }
Property Value
Location
Gets the location of the mouse during MouseEvent.
public Point Location { get; }
Property Value
X
Gets the x-coordinate of a mouse click.
public int X { get; }
Property Value
Y
Gets the y-coordinate of a mouse click.
public int Y { get; }