AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.11" />

 TextRange

The positional range in the source code.
public TextPosition End { get; }

Gets the end position of the range.

public TextPosition Start { get; }

Gets the start position of the range.

public TextRange(TextPosition start, TextPosition end)

Creates a new text range.

public static bool op_GreaterThan(TextRange a, TextRange b)

Compares the two ranges by their positions in the text source.

public static bool op_LessThan(TextRange a, TextRange b)

Compares the two ranges by their positions in the text source.

public int CompareTo(TextRange other)

Compares the current range with another range.

public bool Equals(TextRange other)

Indicates whether the current range is equal to the given range.