Table of Contents

Method Union

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

Union(params PageRange[])

Creates the union of several ranges, sorted and merged.

public static PageRange Union(params PageRange[] ranges)

Parameters

ranges PageRange[]

The ranges to combine. Overlapping and adjacent spans are merged.

Returns

PageRange

The combined selection, which is a plain range when the spans merge into one.

Exceptions

ArgumentNullException

ranges is null.

ArgumentException

ranges is empty.