CopiesExtensionsSetCopiesTPrintSettings Method |
Sets the number of copies to print.
Namespace:
DotNetBrowser.Print.Settings
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.0
Syntax public static TPrintSettings SetCopies<TPrintSettings>(
this ICopies<TPrintSettings> obj,
int copies
)
where TPrintSettings : class, IPrintSettings
Parameters
- obj
- Type: DotNetBrowser.Print.SettingsICopiesTPrintSettings
The ICopiesTPrintSettings implementation. - copies
- Type: SystemInt32
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
ICopiesTPrintSettings. 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 Exception | 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