Method InitEventNs
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
InitEventNs(string, string, bool, bool)
(DOM Level 3 Experimental)
The
void InitEventNs(string namespaceUriArg, string eventTypeArg, bool canBubbleArg, bool cancelableArg)
Parameters
namespaceUriArg
stringSpecifies the namespace URI associated with this event, or
null
if no namespace.eventTypeArg
stringSpecifies the local name of the event type (see also the description of IEvent.Type).
canBubbleArg
boolSpecifies whether or not the event can bubble.
cancelableArg
boolSpecifies 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
.