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
typestringeventInitDictCompositionEventInit
Remarks
-CompositionEvent, the interface of the objects it constructs.
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
DeprecatedinitCompositionEvent()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
Returns
Remarks
NOTE
The correct way of creating a CompositionEvent is to use
the constructor CompositionEvent(string, CompositionEventInit).