Method InitKeyboardEventNs
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
InitKeyboardEventNs(string, string, bool, bool, IAbstractView, string, KeyLocationCode, bool, bool, bool, bool, bool)
The InitKeyboardEventNs method is used to initialize the value of a IKeyboardEvent created using the IDocumentEvent.CreateEvent method.
void InitKeyboardEventNs(string namespaceUri, string type, bool canBubbleArg, bool cancelableArg, IAbstractView viewArg, string keyIdentifierArg, KeyLocationCode keyLocationArg, bool ctrlKeyArg, bool shiftKeyArg, bool altKeyArg, bool metaKeyArg, bool altGraphKeyArg)Parameters
- namespaceUristring
- Specifies the namespace URI associated with this event, or null if the applications wish to have no namespace. 
- typestring
- Specifies the event type. 
- canBubbleArgbool
- Specifies whether or not the event can bubble. 
- cancelableArgbool
- Specifies whether or not the event's default action can be prevent. 
- viewArgIAbstractView
- Specifies the IKeyboardEvent's IAbstractView. 
- keyIdentifierArgstring
- Specifies the IKeyboardEvent's KeyIdentifier attribute. 
- keyLocationArgKeyLocationCode
- Specifies the IKeyboardEvent's KeyLocation attribute. 
- ctrlKeyArgbool
- Specifies the IKeyboardEvent's CtrlKey attribute. 
- shiftKeyArgbool
- Specifies the IKeyboardEvent's ShiftKey attribute. 
- altKeyArgbool
- Specifies the IKeyboardEvent's AltKey attribute. 
- metaKeyArgbool
- Specifies the IKeyboardEvent's MetaKey attribute. 
- altGraphKeyArgbool
- Specifies the IKeyboardEvent's AltGraphKey attribute. 
Remarks
This method may only be called before the IKeyboardEvent has been dispatched via the IEventTarget.DispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence. This method has no effect if called after the event has been dispatched.