Back to API Reference
Class

RangeEx

static

Extension methods for parsing Range from string representation.

Remarks

Supports C# range syntax: "0..5", "..5", "2..", "^3..^1". Used internally for markup parameter parsing.
public static bool IsWholeText()

Returns true if the expression parses to a range covering the entire text, regardless of which syntactic form was used ("..", "..^0", "0..", etc.).

public static bool IsWholeText()

Returns true if the range is equivalent to All.

public static bool TryParse(string text, Range range)

Parses a string into a Range.

public static ValueTuple<int,int> Range(int count, Range range)

Converts a Range to absolute start/end indices for a given length.

public static const string WholeText

Canonical whole-text range expression. Equivalent to Range.All.

See Also