Skip to main content
Version: 3.5

MouseEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the MouseUp, MouseDown, and MouseMove events.

public class MouseEventArgs : EventArgs

Constructors​

Instance memberMouseEventArgs(button, clicks, x, y, delta)​

Initializes a new instance of the MouseEventArgs class.

NameTypeDescription
buttonMouseButtonsOne of the MouseButtons values that indicate which mouse button was pressed.
clicksInt32The number of times a mouse button was pressed.
xInt32The x-coordinate of a pointer click, in pixels.
yInt32The y-coordinate of a pointer click, in pixels.
deltaInt32A signed count of the number of dents the wheel has rotated.

Instance memberMouseEventArgs(button, clicks, x, y, delta, role)​

Initializes a new instance of the MouseEventArgs class.

NameTypeDescription
buttonMouseButtonsOne of the MouseButtons values that indicate which mouse button was pressed.
clicksInt32The number of times a mouse button was pressed.
xInt32The x-coordinate of a pointer click, in pixels.
yInt32The y-coordinate of a pointer click, in pixels.
deltaInt32A signed count of the number of dents the wheel has rotated.
roleStringThe internal role assigned to the element that generated the pointer event.

Properties​

Instance memberButton​

MouseButtons: Returns which mouse button was pressed.

Instance memberClicks​

Int32: Returns the number of clicks or taps.

Instance memberDelta​

Int32: Returns the number of times the mouse wheel has rotated.

Instance memberLocation​

Point: Returns the location of the mouse or pointer event.

Instance memberOriginalTarget​

Control: Returns the original target Control when the pointer event has bubbled up because the original target was either not Enabled or Anonymous.

Instance memberRole​

String: Returns the internal role assigned to the element that generated the pointer event: checkbox, button, ...

The value in the Role property is taken from the "role" attribute of the clicked element inside the widget. You can detect clicks on custom HTML content by adding the role attribute to the custom element.

Instance memberX​

Int32: Returns the x-coordinate of the mouse or touch event.

Instance memberY​

Int32: Returns the y-coordinate of the mouse or touch event.

Used By​

NameDescription
MouseEventHandlerRepresents the method that will handle the MouseDown, MouseUp, or MouseMove event of a form, control, or other component.