Struct TextChange
public readonly record struct TextChange : IEquatable<TextChange>
- Implements
- Inherited Members
- Extension Methods
Constructors
TextChange(TextSpan, string)
public TextChange(TextSpan Span, string NewText)
Parameters
SpanTextSpanThe range of the original text being replaced. A zero-length span is a pure insertion.
NewTextstringThe 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
Span
The range of the original text being replaced. A zero-length span is a pure insertion.
public TextSpan Span { get; init; }