Table of Contents

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 string

Specifies the IEvent.NamespaceUri associated with the event for which the user is registering.

type string

Specifies the IEvent.Type associated with the event for which the user is registering.

listener EventListener

The 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 bool

If 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. If false, the event listener will only be triggered during the target and bubbling phases.

evtGroup object

The object that represents the event group to associate with the EventListener. Use null to attach the event listener to the default group.

See Also