Table of Contents

Method SetPageRanges

Namespace
DotNetBrowser.Print.Settings
Assembly
DotNetBrowser.dll

SetPageRanges<TPrintSettings>(IPageRanges<TPrintSettings>, IReadOnlyCollection<PageRange>)

Sets the collection of the page ranges to print.

public static TPrintSettings SetPageRanges<TPrintSettings>(this IPageRanges<TPrintSettings> obj, IReadOnlyCollection<PageRange> pageRanges) where TPrintSettings : class, IPrintSettings

Parameters

obj IPageRanges<TPrintSettings>

The IPageRanges<TPrintSettings> implementation.

pageRanges IReadOnlyCollection<PageRange>

The collection of the page ranges to print.

Returns

TPrintSettings

The current print settings instance.

Type Parameters

TPrintSettings

The specific print settings type.

Exceptions

ArgumentException

The collection is null, empty, or contains null objects.