Table of Contents

Class TextEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
IMPORTANT
Deprecated
The TextEvent 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

TextEvent events have been superseded by events such as input, beforeinput, keypress, keyup, and keydown.

See also on MDN

Constructors

TextEvent()

public TextEvent()

Properties

Data

IMPORTANT
Deprecated
The data 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.
For textInput events, this is the character that was last entered.

Remarks

Methods

InitTextEvent(string, bool, bool, Window?, string)

IMPORTANT
Deprecated
The initTextEventEvent() 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

type string
bubbles bool
cancelable bool
view Window
data string

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

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.

See also on MDN