Table of Contents

Class CustomEvent

Namespace
AngleSharp.Dom.Events
Assembly
AngleSharp.dll

Represents a custom event that provides an additional details property.

[DomName("CustomEvent")]
public class CustomEvent : Event
Inheritance
CustomEvent
Inherited Members
Extension Methods

Constructors

CustomEvent()

Creates a new event.

public CustomEvent()

CustomEvent(string, bool, bool, object?)

Creates a new event and initializes it.

[DomConstructor]
[DomInitDict(1, true)]
public CustomEvent(string type, bool bubbles = false, bool cancelable = false, object? details = null)

Parameters

type string

The type of the event.

bubbles bool

If the event is bubbling.

cancelable bool

If the event is cancelable.

details object

Sets the details for the custom event.

Properties

Details

Gets the details that have been associated with the custom event.

[DomName("detail")]
public object? Details { get; }

Property Value

object

Methods

Init(string, bool, bool, object?)

Initializes the custom event.

[DomName("initCustomEvent")]
public void Init(string type, bool bubbles, bool cancelable, object? details)

Parameters

type string

The type of event.

bubbles bool

Determines if the event bubbles.

cancelable bool

Determines if the event is cancelable.

details object

Sets the details for the custom event.