EventTargetDispatchEvent Method
This method allows the dispatch of events into the implementations event model.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.11
Syntax
public bool DispatchEvent(
	Event event
)

Parameters

event
Type: Aspose.Html.Dom.EventsEvent
Specifies the event type, behavior, and contextual information to be used in processing the event.

Return Value

Type: Boolean
The return value of DispatchEvent(Event) indicates whether any of the listeners which handled the event called PreventDefault. If PreventDefault was called the value is false, else the value is true.

Implements

IEventTargetDispatchEvent(Event)
Exceptions
ExceptionCondition
DOMException
Remarks
Events dispatched in this manner will have the same capturing and bubbling behavior as events dispatched directly by the implementation. The target of the event is the EventTarget on which DispatchEvent(Event) is called.
See Also