AngleSharp by AngleSharp

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

 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 TextPosition After(char chr)

Returns a new text position that is after the given character.

public TextPosition After(string str)

Returns a new text position that is after the given string.

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.

public TextPosition Shift(int columns)

Returns a new text position that includes the given offset.