Method AddEventListenerNs
- Namespace
- SharpVectors.Dom.Events
- Assembly
- SharpVectors.Dom.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.
public void AddEventListenerNs(string namespaceUri, string type, EventListener listener, bool useCapture, object evtGroup)
Parameters
namespaceUri
stringSpecifies the IEvent.NamespaceUri associated with the event for which the user is registering.
type
stringSpecifies the IEvent.Type associated with the event for which the user is registering.
listener
EventListenerThe
listener
parameter takes an object implemented by the user which implements the EventListener interface and contains the method to be called when the event occurs.useCapture
boolIf
true
,useCapture
indicates 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.evtGroup
objectThe object that represents the event group to associate with the EventListener. Use
null
to attach the event listener to the default group.
- See Also