InputEventInit Class

https://w3c.github.io/uievents/#dictdef-inputeventinit

public sealed class InputEventInit : UIEventInit
Inheritance
UIEventInit InputEventInit

Constructors

NameDescription
InputEventInit()

InputEventInit()

UIEvents.cs
public InputEventInit()

No documentation is available.

Properties

NameDescription
DataGets the inserted characters, or null when the input does not insert text.
DataTransferGets the data of a paste or of a drop in editable content (rich text), or null.
InputTypeGets the type of the change, such as insertText or deleteContentBackward.
IsComposingGets a value indicating whether the event is part of a composition session.
TargetRangesGets the ranges that the editing operation affects.

Gets the inserted characters, or null when the input does not insert text.

public string? Data { get; init; }

DataTransfer

UIEvents.cs

Gets the data of a paste or of a drop in editable content (rich text), or null.

public DataTransfer? DataTransfer { get; init; }

InputType

UIEvents.cs

Gets the type of the change, such as insertText or deleteContentBackward.

public string InputType { get; init; }

IsComposing

UIEvents.cs

Gets a value indicating whether the event is part of a composition session.

public bool IsComposing { get; init; }

TargetRanges

UIEvents.cs

Gets the ranges that the editing operation affects.

public IReadOnlyList<StaticRange> TargetRanges { get; init; }