EventTarget Class

EventTarget class

The EventTarget interface is implemented by all Nodes in an implementation which supports the DOM Event Model. Therefore, this interface can be obtained by using binding-specific casting methods on an instance of the Node interface. The interface allows registration and removal of Event Listeners on an EventTarget and dispatch of events to that IEventTarget.

public class EventTarget : DOMObject, IDisposable, IEventTarget

Constructors

NameDescription
EventTarget()The default constructor.

Methods

NameDescription
AddEventListener(string, IEventListener)This method allows the registration of event listeners on the event target.
AddEventListener(string, DOMEventHandler, bool)This method allows the registration of event listeners on the event target.
AddEventListener(string, IEventListener, bool)This method allows the registration of event listeners on the event target.
DispatchEvent(Event)This method allows the dispatch of events into the implementations event model.
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
virtual GetPlatformType()This method is used to retrieve ECMAScript object Type.
RemoveEventListener(string, IEventListener)This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.
RemoveEventListener(string, DOMEventHandler, bool)This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.
RemoveEventListener(string, IEventListener, bool)This method allows the removal of event listeners from the event target. If an IEventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions. Event Listeners can never be invoked after being removed.

See Also