Table of Contents

Class TextEditorSelectionState

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

The selection in a TwTextEditor as the browser reports it, passed to NotifyStateAsync(TextEditorSelectionState?).

[ExcludeFromCodeCoverage]
public sealed class TextEditorSelectionState
Inheritance
TextEditorSelectionState
Inherited Members

Constructors

TextEditorSelectionState()

public TextEditorSelectionState()

Properties

Formats

Gets or sets the names of the TextEditorFormat values applied at the selection.

public string[]? Formats { get; set; }

Property Value

string[]

Index

Gets or sets where the selection starts, as a count of characters from the start of the text.

public int Index { get; set; }

Property Value

int

Length

Gets or sets how many characters are selected.

public int Length { get; set; }

Property Value

int

Gets or sets the address of the link the selection is in, or null.

public string? Link { get; set; }

Property Value

string