Table of Contents

Class MouseEventArgs

Namespace
NetEx.Hooks
Assembly
NetEx.Hooks.dll

Provides data for the MouseUp, MouseDown and MouseMove events.

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 MouseButtons
clicks int
x int
y int
delta int

Properties

Button

Gets which mouse button was pressed.

public MouseButtons Button { get; }

Property Value

MouseButtons

Clicks

Gets the number of times the mouse button was pressed and released.

public int Clicks { get; }

Property Value

int

Delta

Gets a signed count of the number of detents the mouse wheel has rotated.

public int Delta { get; }

Property Value

int

Location

Gets the location of the mouse during MouseEvent.

public Point Location { get; }

Property Value

Point

X

Gets the x-coordinate of a mouse click.

public int X { get; }

Property Value

int

Y

Gets the y-coordinate of a mouse click.

public int Y { get; }

Property Value

int

See Also