AngleSharp by Florian Rappl

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

 TextPosition

The position in the source code.
public static readonly TextPosition Empty

An empty position (0, 0, 0).

public int Column { get; }

Gets the column within the document.

public int Line { get; }

Gets the line within the document.

public int Position { get; }

Gets the position within the source.

public TextPosition(ushort line, ushort column, int position)

Creates a new text position.

public static bool op_GreaterThan(TextPosition a, TextPosition b)

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

public static bool op_LessThan(TextPosition a, TextPosition b)

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

public int CompareTo(TextPosition other)

Compares the current position with another position.

public bool Equals(TextPosition other)

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