Method InitMouseEvent
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.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.
void InitMouseEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IAbstractView viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, ushort buttonArg, IEventTarget relatedTargetArg)
Parameters
typeArg
stringSpecifies the event type.
canBubbleArg
boolSpecifies whether or not the event can bubble.
cancelableArg
boolSpecifies whether or not the event's default action can be prevented.
viewArg
IAbstractViewSpecifies the IEvent's view.
detailArg
longSpecifies the IEvent's mouse click count.
screenXArg
longSpecifies the IEvent's screen x coordinate.
screenYArg
longSpecifies the IEvent's screen y coordinate.
clientXArg
longSpecifies the IEvent's client x coordinate.
clientYArg
longSpecifies the IEvent's client y coordinate.
ctrlKeyArg
boolSpecifies whether or not control key was depressed during the IEvent.
altKeyArg
boolSpecifies whether or not alt key was depressed during the IEvent.
shiftKeyArg
boolSpecifies whether or not shift key was depressed during the IEvent.
metaKeyArg
boolSpecifies whether or not meta key was depressed during the IEvent.
buttonArg
ushortSpecifies the IEvent's mouse button.
relatedTargetArg
IEventTargetSpecifies the IEvent's related 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.