Table of Contents

Class FocusEvent

Namespace
AngleSharp.Dom.Events
Assembly
AngleSharp.dll

Represents the arguments for a focus event.

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

Constructors

FocusEvent()

Creates a new event.

public FocusEvent()

FocusEvent(string, bool, bool, IWindow?, int, IEventTarget?)

Creates a new event and initializes it.

[DomConstructor]
[DomInitDict(1, true)]
public FocusEvent(string type, bool bubbles = false, bool cancelable = false, IWindow? view = null, int detail = 0, IEventTarget? target = 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.

detail int

Sets the detail id for the UIevent.

target IEventTarget

The target that is being focused.

Properties

Target

Gets the target of the event.

[DomName("relatedTarget")]
public IEventTarget? Target { get; }

Property Value

IEventTarget

Methods

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

Initializes the focus event.

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

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.

target IEventTarget

The target that is being focused.