EventTarget.DispatchEvent
Contents
[
Hide
]EventTarget.DispatchEvent method
Dispatches an Event at the specified IEventTarget
, (synchronously) invoking the affected EventListeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with DispatchEvent
.
public bool DispatchEvent(Event @event)
Parameter | Type | Description |
---|---|---|
event | Event | Specifies the event type, behavior, and contextual information to be used in processing the event. |
Return Value
The return value of DispatchEvent
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.
Exceptions
exception | condition |
---|---|
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
is called.
See Also
- class Event
- class EventTarget
- namespace Aspose.Svg.Dom
- assembly Aspose.SVG