Table of Contents

Struct TextChange

Namespace
Icy.Design.Text
Assembly
IcyUI.Design.dll

Describes one replacement in a markup text: the characters in Span are replaced by NewText.

public readonly record struct TextChange : IEquatable<TextChange>
Implements
Inherited Members
Extension Methods

Constructors

TextChange(TextSpan, string)

Describes one replacement in a markup text: the characters in Span are replaced by NewText.

public TextChange(TextSpan Span, string NewText)

Parameters

Span TextSpan

The range of the original text being replaced. A zero-length span is a pure insertion.

NewText string

The replacement text. An empty string is a pure deletion.

Properties

NewText

The replacement text. An empty string is a pure deletion.

public string NewText { get; init; }

Property Value

string

Span

The range of the original text being replaced. A zero-length span is a pure insertion.

public TextSpan Span { get; init; }

Property Value

TextSpan