Table of Contents

Class UiEvent

Namespace
AngleSharp.Dom.Events
Assembly
AngleSharp.dll

Represents the event args for any UI event.

[DomName("UIEvent")]
public class UiEvent : Event
Inheritance
UiEvent
Derived
Inherited Members
Extension Methods

Constructors

UiEvent()

Creates a new event.

public UiEvent()

UiEvent(string, bool, bool, IWindow?, int)

Creates a new event and initializes it.

[DomConstructor]
[DomInitDict(1, true)]
public UiEvent(string type, bool bubbles = false, bool cancelable = false, IWindow? view = null, int detail = 0)

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.

Properties

Detail

Gets the event details.

[DomName("detail")]
public int Detail { get; }

Property Value

int

View

Gets the associated view.

[DomName("view")]
public IWindow? View { get; }

Property Value

IWindow

Methods

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

Initializes the UI event.

[DomName("initUIEvent")]
public void Init(string type, bool bubbles, bool cancelable, IWindow? view, int detail)

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.