Click or drag to resize

ScalingExtensions.SetScaling<TPrintSettings> Method

Sets the scaling for printing.

Namespace:  DotNetBrowser.Print.Settings
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.2
Syntax
C#
public static TPrintSettings SetScaling<TPrintSettings>(
	this IScaling<TPrintSettings> obj,
	Scaling scaling
)
where TPrintSettings : class, IPrintSettings

Parameters

obj
Type: DotNetBrowser.Print.Settings.IScaling<TPrintSettings>
The IScaling<TPrintSettings> implementation.
scaling
Type: DotNetBrowser.Print.Scaling
The scaling used for printing.

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 IScaling<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
ArgumentNullExceptionThe specified scaling is null.
ArgumentExceptionThe specified scaling is not supported by the printer.
See Also