Table of Contents

Class CompositionEvent

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

Represents the event arguments for a composed event.

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

Constructors

CompositionEvent()

Creates a new event.

public CompositionEvent()

CompositionEvent(string, bool, bool, IWindow?, string?)

Creates a new event and initializes it.

[DomConstructor]
[DomInitDict(1, true)]
public CompositionEvent(string type, bool bubbles = false, bool cancelable = false, IWindow? view = null, string? data = null)

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.

data string

Sets the data to carry.

Properties

Data

Gets the associated data.

[DomName("data")]
public string? Data { get; }

Property Value

string

Methods

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

Initializes the composition event.

[DomName("initCompositionEvent")]
public void Init(string type, bool bubbles, bool cancelable, IWindow? view, string data)

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.

data string

Sets the data to carry.