Table of Contents

Interface IEvent

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

The Event interface is used to provide contextual information about an event to the listener processing the event.

public interface IEvent

Remarks

An object which implements the IEvent interface is passed as the parameter to an EventListener. More specific context information is passed to event listeners by deriving additional interfaces from IEvent which contain information directly relating to the type of event they represent. These derived interfaces are also implemented by the object passed to the event listener.

Properties

Bubbles

(DOM Level 2) Used to indicate whether or not an event is a bubbling event.

Cancelable

(DOM Level 2) Used to indicate whether or not an event can have its default action prevented.

CurrentTarget

(DOM Level 2) Used to indicate the IEventTarget whose EventListeners are currently being processed.

EventPhase

(DOM Level 2) Used to indicate which phase of event flow is currently being accomplished.

IsCustom

(DOM Level 3 Experimental) This method will always return false, unless the event implements the ICustomEvent interface.

IsDefaultPrevented

(DOM Level 3 Experimental) This method will return true if the method PreventDefault has been called for this event, false otherwise.

NamespaceUri

(DOM Level 3 Experimental) The namespace URI associated with this event at creation time, or null if it is unspecified.

Target

(DOM Level 2) Used to indicate the event target.

TimeStamp

(DOM Level 2) Used to specify the time at which the event was created.

Type

(DOM Level 2) The name must be an NCName as defined in [XML Namespaces] and is case-sensitive.

Methods

InitEvent(string, bool, bool)

(DOM Level 2) The InitEvent method is used to initialize the value of an IEvent created through the IDocumentEvent.CreateEvent method.

InitEventNs(string, string, bool, bool)

(DOM Level 3 Experimental) The InitEventNs method is used to initialize the value of an IEvent created through the IDocumentEvent interface.

PreventDefault()

(DOM Level 2) Signify that the event is to be canceled.

StopImmediatePropagation()

(DOM Level 3 Experimental) Immediately prevent event listeners of the same group to be triggered.

StopPropagation()

(DOM Level 2) Prevent event listeners of the same group to be triggered.