Method InitTextEvent
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
InitTextEvent(string, bool, bool, IAbstractView, string)
The InitTextEvent method is used to initialize the value of a ITextEvent created using the IDocumentEvent.CreateEvent method.
void InitTextEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IAbstractView viewArg, string dataArg)
Parameters
typeArg
stringSpecifies the event type.
canBubbleArg
boolSpecifies whether or not the event can bubble. This parameter overrides the intrinsic bubbling behavior of the event.
cancelableArg
boolSpecifies whether or not the event's default action can be prevent. This parameter overrides the intrinsic cancelable behavior of the event.
viewArg
IAbstractViewSpecifies the TextEvent's view.
dataArg
stringSpecifies the TextEvent's data attribute.
Remarks
This method may only be called before the ITextEvent 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.