Class CustomEvent
Namespace: Aspose.Html.Dom.Events
Assembly: Aspose.HTML.dll (25.4.0)
Events using the CustomEvent interface can be used to carry custom data.
[ComVisible(true)]
[DOMObject]
[DOMName("CustomEvent")]
public class CustomEvent : Event, INotifyPropertyChanged
Inheritance
object ← DOMObject ← Event ← CustomEvent
Implements
Inherited Members
Event.NonePhase , Event.CapturingPhase , Event.AtTargetPhase , Event.BubblingPhase , Event.InitEvent(string, bool, bool) , Event.PreventDefault() , Event.StopPropagation() , Event.StopImmediatePropagation() , Event.Bubbles , Event.Cancelable , Event.CurrentTarget , Event.EventPhase , Event.Target , Event.TimeStamp , Event.Type , Event.DefaultPrevented , Event.IsTrusted , DOMObject.GetPlatformType() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
CustomEvent(string)
Initializes a new instance of the Aspose.Html.Dom.Events.CustomEvent class.
[DOMConstructor]
public CustomEvent(string type)
Parameters
type
string
The event type.
CustomEvent(string, IDictionary<string, object="">)
Initializes a new instance of the Aspose.Html.Dom.Events.CustomEvent class.
[DOMConstructor]
public CustomEvent(string type, IDictionary<string, object=""> eventInitDict)
Parameters
type
string
The event type.
eventInitDict
IDictionary
<
string
, object
>
The event initialize dictionary.
Properties
Detail
Gets the custom data.
[DOMName("detail")]
public object Detail { get; }
Property Value
Methods
InitCustomEvent(string, bool, bool, object)
/// The Aspose.Html.Dom.Events.Event.InitEvent(System.String,System.Boolean,System.Boolean) method is used to initialize the value of an Aspose.Html.Dom.Events.Event created through the Aspose.Html.Dom.Events.IDocumentEvent interface.
[DOMName("initCustomEvent")]
public void InitCustomEvent(string type, bool bubbles, bool cancelable, object detail)
Parameters
type
string
The event type.
bubbles
bool
if set to true
[bubbles].
cancelable
bool
if set to true
[cancelable].
detail
object
The custom data.
Remarks
This method may only be called before the Event has been dispatched via the Aspose.Html.Dom.Events.IEventTarget.DispatchEvent(Aspose.Html.Dom.Events.Event) method, though it may be called multiple times during that phase if necessary. If called multiple times the final invocation takes precedence. If called from a subclass of Event interface only the values specified in the initEvent method are modified, all other attributes are left unchanged. </string,></string,>