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
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.
target
IEventTargetThe target that is being focused.
Properties
Target
Gets the target of the event.
[DomName("relatedTarget")]
public IEventTarget? Target { get; }
Property Value
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)