Class TextEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
IMPORTANT
DeprecatedTextEvent interface is a legacy UI event interface for reporting changes to text UI elements.
[Value("TextEvent")]
public class TextEvent : UIEvent
- Inheritance
-
TextEvent
- Inherited Members
Remarks
NOTE
TextEventevents have been superseded by events such asinput,beforeinput,keypress,keyup, andkeydown.
Constructors
TextEvent()
public TextEvent()
Properties
Data
IMPORTANT
Deprecateddata read-only property of the TextEvent interface returns the last character added to the input element.
[Value("data")]
public string Data { get; }
Property Value
- string
A string representing the event data.
FortextInputevents, this is the character that was last entered.
Remarks
Methods
InitTextEvent(string, bool, bool, Window?, string)
IMPORTANT
DeprecatedinitTextEventEvent() method of the TextEvent interface initializes the value of a TextEvent after it has been created.
[Value("initTextEvent")]
public GlobalObject.Undefined InitTextEvent(string type, bool bubbles = false, bool cancelable = false, Window? view = null, string data = null)
Parameters
Returns
Remarks
This method must be called to set the event before it is dispatched, using DispatchEvent(Event).
NOTE
In general, you won't create these events yourself; they are created by the browser.