Table of Contents

Class TouchEvent

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

Represents the event arguments for a touch event.

[DomName("TouchEvent")]
public class TouchEvent : UiEvent
Inheritance
TouchEvent
Inherited Members
Extension Methods

Constructors

TouchEvent()

Creates a new event.

public TouchEvent()

TouchEvent(string, bool, bool, IWindow?, int, ITouchList?, ITouchList?, ITouchList?, bool, bool, bool, bool)

Creates a new event and initializes it.

[DomConstructor]
[DomInitDict(1, true)]
public TouchEvent(string type, bool bubbles = false, bool cancelable = false, IWindow? view = null, int detail = 0, ITouchList? touches = null, ITouchList? targetTouches = null, ITouchList? changedTouches = null, bool ctrlKey = false, bool altKey = false, bool shiftKey = false, bool metaKey = false)

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

touches ITouchList

The list of active touches.

targetTouches ITouchList

The list of target-active toches.

changedTouches ITouchList

The list of changed touches.

ctrlKey bool

Sets if the control key was pressed.

altKey bool

Sets if the alt key was pressed.

shiftKey bool

Sets if the shift key was pressed.

metaKey bool

Sets if the meta key was pressed.

Properties

ChangedTouches

Gets a list with changed touch points.

[DomName("changedTouches")]
public ITouchList? ChangedTouches { get; }

Property Value

ITouchList

IsAltPressed

Gets if the alt key is pressed.

[DomName("altKey")]
public bool IsAltPressed { get; }

Property Value

bool

IsCtrlPressed

Gets if the control key is pressed.

[DomName("ctrlKey")]
public bool IsCtrlPressed { get; }

Property Value

bool

IsMetaPressed

Gets if the meta key is pressed.

[DomName("metaKey")]
public bool IsMetaPressed { get; }

Property Value

bool

IsShiftPressed

Gets if the shift key is pressed.

[DomName("shiftKey")]
public bool IsShiftPressed { get; }

Property Value

bool

TargetTouches

Gets a list with touch points over the target.

[DomName("targetTouches")]
public ITouchList? TargetTouches { get; }

Property Value

ITouchList

Touches

Gets a list with all active touch points.

[DomName("touches")]
public ITouchList? Touches { get; }

Property Value

ITouchList

Methods

Init(string, bool, bool, IWindow?, int, ITouchList?, ITouchList?, ITouchList?, bool, bool, bool, bool)

Initializes the focus event.

[DomName("initTouchEvent")]
public void Init(string type, bool bubbles, bool cancelable, IWindow? view, int detail, ITouchList? touches, ITouchList? targetTouches, ITouchList? changedTouches, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)

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.

touches ITouchList

The list of active touches.

targetTouches ITouchList

The list of target-active toches.

changedTouches ITouchList

The list of changed touches.

ctrlKey bool

Sets if the control key was pressed.

altKey bool

Sets if the alt key was pressed.

shiftKey bool

Sets if the shift key was pressed.

metaKey bool

Sets if the meta key was pressed.