Table of Contents

Class TextDiffLine

Namespace
NuvTools.AspNetCore.Blazor.Components
Assembly
NuvTools.AspNetCore.Blazor.dll

One side of a TextDiffRow: a line of the old or the new text.

public sealed record TextDiffLine : IEquatable<TextDiffLine>
Inheritance
TextDiffLine
Implements
Inherited Members

Constructors

TextDiffLine(int, string, int, int)

One side of a TextDiffRow: a line of the old or the new text.

public TextDiffLine(int Number, string Text, int ChangeStart = 0, int ChangeLength = 0)

Parameters

Number int

Line number in its own text, starting at 1.

Text string

The line, without its line break.

ChangeStart int

Where the changed part starts, for a modified line; 0 otherwise.

ChangeLength int

Length of the changed part, for a modified line; 0 otherwise.

Properties

After

The text after the changed part.

public string After { get; }

Property Value

string

Before

The text before the changed part (the whole line when nothing inside it changed).

public string Before { get; }

Property Value

string

ChangeLength

Length of the changed part, for a modified line; 0 otherwise.

public int ChangeLength { get; init; }

Property Value

int

ChangeStart

Where the changed part starts, for a modified line; 0 otherwise.

public int ChangeStart { get; init; }

Property Value

int

Changed

The changed part of a modified line.

public string Changed { get; }

Property Value

string

Number

Line number in its own text, starting at 1.

public int Number { get; init; }

Property Value

int

Text

The line, without its line break.

public string Text { get; init; }

Property Value

string