Method DispatchEvent
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
DispatchEvent(IEvent)
This method allows the dispatch of events into the implementation's event model.
bool DispatchEvent(IEvent evt)
Parameters
evt
IEventThe event to be dispatched.
Returns
- bool
Indicates whether any of the listeners which handled the event called IEvent.PreventDefault. If IEvent.PreventDefault was called the returned value is
false
, else it istrue
.
Remarks
The event target of the event is the IEventTarget object on which DispatchEvent is called.
Exceptions
- EventException
UNSPECIFIED_EVENT_TYPE_ERR: Raised if the Event.type was not specified by initializing the event before dispatchEvent was called. Specification of the Event.type as null or an empty string will also trigger this exception.
DISPATCH_REQUEST_ERR: Raised if the Event object is already being dispatched in the tree.
NOT_SUPPORTED_ERR: Raised if the Event object has not been created using DocumentEvent.createEvent or does not support the interface CustomEvent.