InputEvent Class
https://w3c.github.io/uievents/#inputevent
public sealed class InputEvent : UIEvent- Inheritance
UIEventInputEvent
Constructors
| Name | Description |
|---|---|
| InputEvent(string, InputEventInit?) | Creates an input event of the given type with the given initialization dictionary. |
InputEvent(string, InputEventInit?)
UIEvents.csCreates an input event of the given type with the given initialization dictionary.
public InputEvent(string type, InputEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| Data | Gets the inserted characters, or null when the input does not insert text. |
| DataTransfer | Gets the data of a paste or of a drop in editable content (the rich text and the plain text), or null: the plain text inserted in a text control is in InputEvent.Data (https://w3c.github.io/input-events/#dom-inputevent-datatransfer). |
| InputType | Gets the type of the change, such as insertText or deleteContentBackward. |
| IsComposing | Gets a value indicating whether the event is part of a composition session. |
Data
UIEvents.csGets the inserted characters, or null when the input does not insert text.
public string? Data { get; }DataTransfer
UIEvents.csGets the data of a paste or of a drop in editable content (the rich text and the plain text), or null: the plain text inserted in a text control is in InputEvent.Data (https://w3c.github.io/input-events/#dom-inputevent-datatransfer).
public DataTransfer? DataTransfer { get; }InputType
UIEvents.csGets the type of the change, such as insertText or deleteContentBackward.
public string InputType { get; }IsComposing
UIEvents.csGets a value indicating whether the event is part of a composition session.
public bool IsComposing { get; }Methods
| Name | Description |
|---|---|
| GetTargetRanges() | Returns the ranges that the editing operation affects. |
GetTargetRanges()
UIEvents.csReturns the ranges that the editing operation affects.
public IReadOnlyList<StaticRange> GetTargetRanges()