All pages
Powered by GitBook
1 of 1

Loading...

MouseEventArgs

Wisej.Web.MouseEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

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

public class MouseEventArgs : EventArgs
Public Class MouseEventArgs
    Inherits EventArgs

Constructors

MouseEventArgs(button, clicks, x, y, delta)

Initializes a new instance of the class.

Name
Type
Description

MouseEventArgs(button, clicks, x, y, delta, role)

Initializes a new instance of the class.

Name
Type
Description

Properties

Button

: Returns which mouse button was pressed.

Clicks

: Returns the number of clicks or taps.

Delta

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

Location

: Returns the location of the mouse or pointer event.

OriginalTarget

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

Role

: 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.

X

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

Y

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

Used By

Name
Description

The y-coordinate of a pointer click, in pixels.

delta

A signed count of the number of dents the wheel has rotated.

The y-coordinate of a pointer click, in pixels.

delta

A signed count of the number of dents the wheel has rotated.

role

The internal role assigned to the element that generated the pointer event.

button

MouseButtons

One of the MouseButtons values that indicate which mouse button was pressed.

clicks

Int32

The number of times a mouse button was pressed.

x

Int32

The x-coordinate of a pointer click, in pixels.

button

MouseButtons

One of the MouseButtons values that indicate which mouse button was pressed.

clicks

Int32

The number of times a mouse button was pressed.

x

Int32

The x-coordinate of a pointer click, in pixels.

MouseEventHandler

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

MouseEventArgs
MouseEventArgs
MouseButtons
Int32
Int32
Point
Control
Control
Enabled
Anonymous
String
Int32
Int32

y

y

Int32
Int32
Int32
Int32
String