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
stringThe type of the event.
bubbles
boolIf the event is bubbling.
cancelable
boolIf the event is cancelable.
view
IWindowSets the associated view for the UI event.
detail
intSets the detail id for the UIevent.
Properties
Detail
Gets the event details.
[DomName("detail")]
public int Detail { get; }
Property Value
View
Gets the associated view.
[DomName("view")]
public IWindow? View { get; }
Property Value
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)