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
eventTypestringbubblesboolcancelableboolviewIAbstractViewdetaillongscreenXlongscreenYlongclientXlongclientYlongctrlKeyboolaltKeyboolshiftKeyboolmetaKeyboolbuttonushortrelatedTargetIEventTarget
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.