Click or drag to resize

PagesPerSheetExtensions.SetPagesPerSheet<TPrintSettings> Method

Sets the number of pages per sheet.

Namespace:  DotNetBrowser.Print.Settings
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.20.1
Syntax
C#
public static TPrintSettings SetPagesPerSheet<TPrintSettings>(
	this IPagesPerSheet<TPrintSettings> obj,
	PagesPerSheet pagesPerSheet
)
where TPrintSettings : class, IPrintSettings

Parameters

obj
Type: DotNetBrowser.Print.Settings.IPagesPerSheet<TPrintSettings>
The IPagesPerSheet<TPrintSettings> implementation.
pagesPerSheet
Type: DotNetBrowser.Print.PagesPerSheet
The new number of pages per sheet.

Type Parameters

TPrintSettings
The specific print settings type.

Return Value

Type: TPrintSettings
The current print settings instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPagesPerSheet<TPrintSettings>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentExceptionThe specified number of pages per sheet is not supported by the printer.
See Also