CustomEventInitCustomEvent Method |
Namespace: Aspose.Html.Dom.EventsAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntaxpublic void InitCustomEvent(
string type,
bool bubbles,
bool cancelable,
Object detail
)
Public Sub InitCustomEvent (
type As String,
bubbles As Boolean,
cancelable As Boolean,
detail As Object
)
public:
void InitCustomEvent(
String^ type,
bool bubbles,
bool cancelable,
Object^ detail
)
member InitCustomEvent :
type : string *
bubbles : bool *
cancelable : bool *
detail : Object -> unit
Parameters
- type
- Type: SystemString
The event type. - bubbles
- Type: SystemBoolean
if set to true [bubbles]. - cancelable
- Type: SystemBoolean
if set to true [cancelable]. - detail
- Type: SystemObject
The custom data.
Remarks
This method may only be called before the Event has been dispatched via the
DispatchEvent(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.
See Also