Table of Contents

Method InitEventNs

Namespace
SharpVectors.Dom.Events
Assembly
SharpVectors.Core.dll

InitEventNs(string, string, bool, bool)

(DOM Level 3 Experimental) The InitEventNs method is used to initialize the value of an IEvent created through the IDocumentEvent interface.

void InitEventNs(string namespaceUriArg, string eventTypeArg, bool canBubbleArg, bool cancelableArg)

Parameters

namespaceUriArg string

Specifies the namespace URI associated with this event, or null if no namespace.

eventTypeArg string

Specifies the local name of the event type (see also the description of IEvent.Type).

canBubbleArg bool

Specifies whether or not the event can bubble.

cancelableArg bool

Specifies whether or not the event's default action can be prevented.

Remarks

This method may only be called before the IEvent has been dispatched via the IEventTarget.DispatchEvent method, though it may be called multiple times the event has been dispatched. If called multiple times the final invocation takes precedence. If a call to InitEventNs is made after one of the IEvent derived interfaces' init methods has been called, only the values specified in the InitEventNs method are modified, all other attributes are left unchanged. This method sets the IEvent.Type attribute to eventTypeArg, and IEvent.NamespaceUri to namespaceUriArg.