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
stringThe type of the event.
bubbles
boolIf the event is bubbling.
cancelable
boolIf the event is cancelable.
details
objectSets 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
Methods
Init(string, bool, bool, object?)
Initializes the custom event.
[DomName("initCustomEvent")]
public void Init(string type, bool bubbles, bool cancelable, object? details)