_MouseEventArgs Type

Provides data for the OnMouseUp, OnMouseDown, and OnMouseMove events.

Namespace: CNClrLib.Control.EventArgs
type
 _MouseEventArgs = CNClrLib.Windows._MouseEventArgs;

The OnMouseDown event occurs when the user presses the mouse button while the pointer is over a control. The OnMouseUp event occurs when the user releases the mouse button while the pointer remains over the control. The OnMouseMove event occurs when the user moves the mouse pointer over a control. A MouseEventArgs specifies which mouse button is pressed, how many times the mouse button was pressed and released, the coordinates of the mouse, and the amount the mouse wheel moved.

It is possible to receive a OnMouseDown event without a corresponding OnMouseUp, if the user switches focus to another application before releasing the mouse button.

For more information, see MouseEventArgs in C#.

Properties
Description

Button

Gets which mouse button was pressed.

Clicks

Gets the number of times the mouse button was pressed and release

Delta

Gets a signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant. A detent is one notch of the mouse wheel.

Location

Gets the location of the mouse during the generating mouse event.

X

Gets the x-coordinate of the mouse during the generating mouse event.

Y

Gets the y-coordinate of the mouse during the generating mouse event.