Table of Contents

Method SetCopies

Namespace
DotNetBrowser.Print.Settings
Assembly
DotNetBrowser.dll

SetCopies<TPrintSettings>(ICopies<TPrintSettings>, int)

Sets the number of copies to print.

public static TPrintSettings SetCopies<TPrintSettings>(this ICopies<TPrintSettings> obj, int copies) where TPrintSettings : class, IPrintSettings

Parameters

obj ICopies<TPrintSettings>

The ICopies<TPrintSettings> implementation.

copies int

The number of copies to print. Cannot be zero or negative.

Returns

TPrintSettings

The current print settings instance.

Type Parameters

TPrintSettings

The specific print settings type.

Exceptions

ArgumentException

The specified copies number is less than or equal to zero.

ArgumentException

The specified copies number is not supported by the printer.