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
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.