IDocumentEvent.CreateEvent

IDocumentEvent.CreateEvent method

The createEvent method is used in creating Events when it is either inconvenient or unnecessary for the user to create an Event themselves

public Event CreateEvent(string eventType)
ParameterTypeDescription
eventTypeStringThe eventType parameter specifies the type of interface to be created. If the interface specified is supported by the implementation this method will return a new of the interface type requested. If the is to be dispatched via the method the appropriate method must be called after creation in order to initialize the values. The method is used in creating s when it is either inconvenient or unnecessary for the user to create an themselves. In cases where the implementation provided is insufficient, users may supply their own implementations for use with the method.

Return Value

Returns the newly created event of the specified event type.

Exceptions

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

See Also