Table of Contents

Class TextUpdateEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The TextUpdateEvent interface is a DOM event that represents a text or selection update in an editable text region that's attached to an EditContext instance.
[Value("TextUpdateEvent")]
public class TextUpdateEvent : Event
Inheritance
TextUpdateEvent
Inherited Members

Remarks

This interface inherits properties from Event.

See also on MDN

Constructors

TextUpdateEvent()

public TextUpdateEvent()

TextUpdateEvent(string, TextUpdateEventInit)

NOTE
Experimental
The TextUpdateEvent() constructor returns a new TextUpdateEvent object.
public TextUpdateEvent(string type, TextUpdateEventInit options = null)

Parameters

type string
options TextUpdateEventInit

Remarks

-The TextUpdateEvent interface it belongs to.

See also on MDN

Properties

SelectionEnd

NOTE
Experimental
The TextUpdateEvent.selectionEnd read-only property indicates the position of the end of the selection (or caret) within the text content of the editable region attached to the EditContext object.
[Value("selectionEnd")]
public ulong SelectionEnd { get; }

Property Value

ulong

A Number.

Remarks

SelectionStart

NOTE
Experimental
The TextUpdateEvent.selectionStart read-only property indicates the position of the start of the selection (or caret) within the text content of the editable region attached to the EditContext object.
[Value("selectionStart")]
public ulong SelectionStart { get; }

Property Value

ulong

A Number.

Remarks

Text

NOTE
Experimental
The TextUpdateEvent.text read-only property contains the text that was inserted within the updated range of a EditContext's textupdate event.
[Value("text")]
public string Text { get; }

Property Value

string

A {{jsxref("String")}} that contains the text that replaces the text contained between the TextUpdateEventupdateRangeStart and TextUpdateEventupdateRangeEnd indexes.

Remarks

UpdateRangeEnd

NOTE
Experimental
The TextUpdateEvent.updateRangeEnd read-only property indicates the end position of the text range that is being replaced in the EditContext object.
[Value("updateRangeEnd")]
public ulong UpdateRangeEnd { get; }

Property Value

ulong

A Number.

Remarks

UpdateRangeStart

NOTE
Experimental
The TextUpdateEvent.updateRangeStart read-only property indicates the start position of the text range that is being replaced in the EditContext object.
[Value("updateRangeStart")]
public ulong UpdateRangeStart { get; }

Property Value

ulong

A Number.

Remarks