SVGSVGElement.CreateEvent

SVGSVGElement.CreateEvent method

Creates an Event of a type supported by the implementation.

public Event CreateEvent(string eventType)
ParameterTypeDescription
eventTypeStringThe eventType parameter specifies the type of Event interface to be created.If the Event interface specified is supported by the implementation this method will return a newEvent of the interface type requested. If the Event is to be dispatched via the DispatchEvent method the appropriateInitEvent method must be called after creation in order to initialize the Event’s values.

Return Value

The newly created Event

Exceptions

exceptioncondition
DOMExceptionNOT_SUPPORTED_ERR: Raised if the implementation does not support the type of Event interface requested

See Also