Table of Contents

Method InitMutationEvent

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

InitMutationEvent(string, bool, bool, INode, string, string, string, AttrChangeType)

The InitMutationEvent method is used to initialize the value of a IMutationEvent created using the IDocumentEvent.CreateEvent method. This method may only be called before the IMutationEvent has been dispatched via the IEventTarget.DispatchEvent method, though it may be called multiple times before being dispatched if necessary. If called multiple times, the final invocation takes precedence.

void InitMutationEvent(string typeArg, bool canBubbleArg, bool cancelableArg, INode relatedNodeArg, string prevValueArg, string newValueArg, string attrNameArg, AttrChangeType attrChangeArg)

Parameters

typeArg string

Specifies the event type.

canBubbleArg bool

Specifies whether or not the event can bubble. This parameter overrides the intrinsic bubbling behavior of the event.

cancelableArg bool

Specifies whether or not the event's default action can be prevented. This parameter overrides the intrinsic cancelable behavior of the event.

relatedNodeArg INode

Specifies the IEvent's related Node.

prevValueArg string

Specifies the IEvent's PrevValue attribute. This value may be null.

newValueArg string

Specifies the IEvent's NewValue attribute. This value may be null.

attrNameArg string

Specifies the IEvent's AttrName attribute. This value may be null.

attrChangeArg AttrChangeType

Specifies the IEvent's AttrChange attribute.