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
rangesPageRange[]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
rangesis null.- ArgumentException
rangesis empty.