Table of Contents

Method TryParse

Namespace
DocWright.Core.Primitives
Assembly
DocWright.Core.dll

TryParse(string?, out PageRange)

Attempts to parse a page selection such as 1-3,7,12-, 4 or all.

public static bool TryParse(string? text, out PageRange result)

Parameters

text string

The selection text, or null.

result PageRange

The parsed selection, or All when parsing fails.

Returns

bool

true if the text was a valid selection.