CopiesExtensions.SetCopies<TPrintSettings> Method |
Sets the number of copies to print.
Namespace:
DotNetBrowser.Print.Settings
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.13.1
Syntaxpublic static TPrintSettings SetCopies<TPrintSettings>(
this ICopies<TPrintSettings> obj,
int copies
)
where TPrintSettings : class, IPrintSettings
Parameters
- obj
- Type: DotNetBrowser.Print.Settings.ICopies<TPrintSettings>
The ICopies<TPrintSettings> implementation. - copies
- Type: System.Int32
The number of copies to print. Cannot be zero or negative.
Type Parameters
- TPrintSettings
- The specific print settings type.
Return Value
Type:
TPrintSettingsThe 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
ICopies<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).
ExceptionsException | Condition |
---|
ArgumentException | The specified copies number is less than or equal to zero. |
ArgumentException | The specified copies number is not supported by the printer. |
See Also