Table of Contents

Method SetPagesPerSheet

Namespace
DotNetBrowser.Print.Settings
Assembly
DotNetBrowser.dll

SetPagesPerSheet<TPrintSettings>(IPagesPerSheet<TPrintSettings>, PagesPerSheet)

Sets the number of pages per sheet.

public static TPrintSettings SetPagesPerSheet<TPrintSettings>(this IPagesPerSheet<TPrintSettings> obj, PagesPerSheet pagesPerSheet) where TPrintSettings : class, IPrintSettings

Parameters

obj IPagesPerSheet<TPrintSettings>

The IPagesPerSheet<TPrintSettings> implementation.

pagesPerSheet PagesPerSheet

The new number of pages per sheet.

Returns

TPrintSettings

The current print settings instance.

Type Parameters

TPrintSettings

The specific print settings type.

Exceptions

ArgumentException

The specified number of pages per sheet is not supported by the printer.