Table of Contents

Class WheelEvent

Namespace
AngleSharp.Html.Dom.Events
Assembly
AngleSharp.dll

Represents the event args for a mouse wheel event.

[DomName("WheelEvent")]
public class WheelEvent : MouseEvent
Inheritance
WheelEvent
Inherited Members
Extension Methods

Constructors

WheelEvent()

Creates a new event.

public WheelEvent()

WheelEvent(string, bool, bool, IWindow?, int, int, int, int, int, MouseButton, IEventTarget?, string?, double, double, double, WheelMode)

Creates a new event and initializes it.

[DomConstructor]
[DomInitDict(1, true)]
public WheelEvent(string type, bool bubbles = false, bool cancelable = false, IWindow? view = null, int detail = 0, int screenX = 0, int screenY = 0, int clientX = 0, int clientY = 0, MouseButton button = MouseButton.Primary, IEventTarget? target = null, string? modifiersList = null, double deltaX = 0, double deltaY = 0, double deltaZ = 0, WheelMode deltaMode = WheelMode.Pixel)

Parameters

type string

The type of the event.

bubbles bool

If the event is bubbling.

cancelable bool

If the event is cancelable.

view IWindow

Sets the associated view for the UI event.

detail int

Sets the detail id for the UI event.

screenX int

Sets the screen X coordinate.

screenY int

Sets the screen Y coordinate.

clientX int

Sets the client X coordinate.

clientY int

Sets the client Y coordinate.

button MouseButton

Sets which button has been pressed.

target IEventTarget

The target of the mouse event.

modifiersList string

A list with keyboard modifiers that have been pressed.

deltaX double

The mouse wheel delta in X direction.

deltaY double

The mouse wheel delta in Y direction.

deltaZ double

The mouse wheel delta in Z direction.

deltaMode WheelMode

The delta mode for the wheel event.

Properties

DeltaMode

Gets the mouse wheel delta mode.

[DomName("deltaMode")]
public WheelMode DeltaMode { get; }

Property Value

WheelMode

DeltaX

Gets the mouse wheel delta X.

[DomName("deltaX")]
public double DeltaX { get; }

Property Value

double

DeltaY

Gets the mouse wheel delta Y.

[DomName("deltaY")]
public double DeltaY { get; }

Property Value

double

DeltaZ

Gets the mouse wheel delta Z.

[DomName("deltaZ")]
public double DeltaZ { get; }

Property Value

double

Methods

Init(string, bool, bool, IWindow?, int, int, int, int, int, MouseButton, IEventTarget?, string, double, double, double, WheelMode)

Initializes the mouse wheel event.

[DomName("initWheelEvent")]
public void Init(string type, bool bubbles, bool cancelable, IWindow? view, int detail, int screenX, int screenY, int clientX, int clientY, MouseButton button, IEventTarget? target, string modifiersList, double deltaX, double deltaY, double deltaZ, WheelMode deltaMode)

Parameters

type string

The type of event.

bubbles bool

Determines if the event bubbles.

cancelable bool

Determines if the event is cancelable.

view IWindow

Sets the associated view for the UI event.

detail int

Sets the detail id for the UIevent.

screenX int

Sets the screen X coordinate.

screenY int

Sets the screen Y coordinate.

clientX int

Sets the client X coordinate.

clientY int

Sets the client Y coordinate.

button MouseButton

Sets which button has been pressed.

target IEventTarget

The target of the mouse event.

modifiersList string

A list with keyboard modifiers that have been pressed.

deltaX double

The mouse wheel delta in X direction.

deltaY double

The mouse wheel delta in Y direction.

deltaZ double

The mouse wheel delta in Z direction.

deltaMode WheelMode

The delta mode for the wheel event.