Click or drag to resize

HostUtilsGetPrinterFormMargins Method

Get limit margins for a given form (page size) and a given printer. This is the physical limit area that a printer can print on a given page

Namespace:  Rhino.Runtime
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.5
Syntax
public static bool GetPrinterFormMargins(
	string printerName,
	string formName,
	bool portrait,
	out double leftMillimeters,
	out double topMillimeters,
	out double rightMillimeters,
	out double bottomMillimeters
)

Parameters

printerName
Type: SystemString

[Missing <param name="printerName"/> documentation for "M:Rhino.Runtime.HostUtils.GetPrinterFormMargins(System.String,System.String,System.Boolean,System.Double@,System.Double@,System.Double@,System.Double@)"]

formName
Type: SystemString

[Missing <param name="formName"/> documentation for "M:Rhino.Runtime.HostUtils.GetPrinterFormMargins(System.String,System.String,System.Boolean,System.Double@,System.Double@,System.Double@,System.Double@)"]

portrait
Type: SystemBoolean

[Missing <param name="portrait"/> documentation for "M:Rhino.Runtime.HostUtils.GetPrinterFormMargins(System.String,System.String,System.Boolean,System.Double@,System.Double@,System.Double@,System.Double@)"]

leftMillimeters
Type: SystemDouble

[Missing <param name="leftMillimeters"/> documentation for "M:Rhino.Runtime.HostUtils.GetPrinterFormMargins(System.String,System.String,System.Boolean,System.Double@,System.Double@,System.Double@,System.Double@)"]

topMillimeters
Type: SystemDouble

[Missing <param name="topMillimeters"/> documentation for "M:Rhino.Runtime.HostUtils.GetPrinterFormMargins(System.String,System.String,System.Boolean,System.Double@,System.Double@,System.Double@,System.Double@)"]

rightMillimeters
Type: SystemDouble

[Missing <param name="rightMillimeters"/> documentation for "M:Rhino.Runtime.HostUtils.GetPrinterFormMargins(System.String,System.String,System.Boolean,System.Double@,System.Double@,System.Double@,System.Double@)"]

bottomMillimeters
Type: SystemDouble

[Missing <param name="bottomMillimeters"/> documentation for "M:Rhino.Runtime.HostUtils.GetPrinterFormMargins(System.String,System.String,System.Boolean,System.Double@,System.Double@,System.Double@,System.Double@)"]

Return Value

Type: Boolean
true on success
See Also