Table of Contents

Method InitMouseEvent

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

InitMouseEvent(string, bool, bool, IAbstractView, long, long, long, long, long, bool, bool, bool, bool, ushort, IEventTarget)

The InitMouseEvent method is used to initialize the value of a MouseEvent created using the IDocumentEvent.CreateEvent method.

public void InitMouseEvent(string eventType, bool bubbles, bool cancelable, IAbstractView view, long detail, long screenX, long screenY, long clientX, long clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, ushort button, IEventTarget relatedTarget)

Parameters

eventType string
bubbles bool
cancelable bool
view IAbstractView
detail long
screenX long
screenY long
clientX long
clientY long
ctrlKey bool
altKey bool
shiftKey bool
metaKey bool
button ushort
relatedTarget IEventTarget

Remarks

This method may only be called before the IMouseEvent has been dispatched via the IEventTarget.DispatchEvent method, though it may be called multiple times before being dispatched. If called multiple times, the final invocation takes precedence.