Table of Contents

Method AddEventListener

Namespace
SharpVectors.Dom.Events
Assembly
SharpVectors.Core.dll

AddEventListener(string, EventListener, bool)

This method allows the registration of an event listener in the default group and, depending on the useCapture parameter, on the capture phase of the DOM event flow or its target and bubbling phases. https://www.w3.org/TR/SVG/interact.html#SVGEvents

void AddEventListener(string type, EventListener listener, bool useCapture)

Parameters

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.