IDocumentEvent.CreateEvent
IDocumentEvent.CreateEvent method
Creates an Event
of a type supported by the implementation.
public Event CreateEvent(string eventType)
Parameter | Type | Description |
---|---|---|
eventType | String | The 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 new Event of the interface type requested. If the Event is to be dispatched via the DispatchEvent method the appropriate InitEvent method must be called after creation in order to initialize the Event ’s values. |
Return Value
The newly created Event
Exceptions
exception | condition |
---|---|
DOMException | NOT_SUPPORTED_ERR: Raised if the implementation does not support the type of Event interface requested |
See Also
- class Event
- interface IDocumentEvent
- namespace Aspose.Svg.Dom.Events
- assembly Aspose.SVG