Method AddEventListenerNs
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Core.dll
AddEventListenerNs(string, string, EventListener, bool, object)
This method allows the registration of an event listener in a
specified group or the default group and, depending on the
useCapture parameter, on the capture phase of the DOM
event flow or its target and bubbling phases.
void AddEventListenerNs(string namespaceUri, string type, EventListener listener, bool useCapture, object evtGroup)
Parameters
namespaceUristringSpecifies the IEvent.NamespaceUri associated with the event for which the user is registering.
typestringSpecifies the IEvent.Type associated with the event for which the user is registering.
listenerEventListenerThe
listenerparameter takes an object implemented by the user which implements the EventListener interface and contains the method to be called when the event occurs.useCaptureboolIf
true,useCaptureindicates that the user wishes to add the event listener for the capture phase only, i.e. this event listener will not be triggered during the target and bubbling phases. Iffalse, the event listener will only be triggered during the target and bubbling phases.evtGroupobjectThe object that represents the event group to associate with the EventListener. Use
nullto attach the event listener to the default group.
- See Also