Table of Contents

Class CompositionEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The DOM CompositionEvent represents events that occur due to the user indirectly entering text.

[Value("CompositionEvent")]
public class CompositionEvent : UIEvent
Inheritance
CompositionEvent
Inherited Members

Remarks

Constructors

CompositionEvent()

public CompositionEvent()

CompositionEvent(string, CompositionEventInit)

The CompositionEvent() constructor creates a new CompositionEvent object.

public CompositionEvent(string type, CompositionEventInit eventInitDict = null)

Parameters

type string
eventInitDict CompositionEventInit

Remarks

-CompositionEvent, the interface of the objects it constructs.

See also on MDN

Properties

Data

The data read-only property of the
CompositionEvent interface returns the characters generated by the input
method that raised the event; its exact nature varies depending on the type of event
that generated the CompositionEvent object.

[Value("data")]
public string Data { get; }

Property Value

string

A string representing the event data:

Remarks

Methods

InitCompositionEvent(string, bool, bool, Window?, string)

IMPORTANT
Deprecated
The initCompositionEvent()
method of the CompositionEvent interface initializes the attributes of a
CompositionEvent object instance.
[Value("initCompositionEvent")]
public GlobalObject.Undefined InitCompositionEvent(string typeArg, bool bubblesArg = false, bool cancelableArg = false, Window? viewArg = null, string dataArg = null)

Parameters

typeArg string
bubblesArg bool
cancelableArg bool
viewArg Window
dataArg string

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks