ViewCaptureSettings.GetMargins Method

ViewCaptureSettingsGetMargins Method

Get distances from the edge of the paper (MediaSize) to the CropRectangle in a defined unit system

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool GetMargins(
	UnitSystem lengthUnits,
	out double left,
	out double top,
	out double right,
	out double bottom
)
Public Function GetMargins ( 
	lengthUnits As UnitSystem,
	<OutAttribute> ByRef left As Double,
	<OutAttribute> ByRef top As Double,
	<OutAttribute> ByRef right As Double,
	<OutAttribute> ByRef bottom As Double
) As Boolean

Parameters

lengthUnits
Type: RhinoUnitSystem
Units to get distances in
left
Type: SystemDouble
Distance from left edge of paper to left edge of CropRectangle
top
Type: SystemDouble
Distance from top edge of paper to top edge of CropRectangle
right
Type: SystemDouble
Distance from right edge of paper to right edge of CropRectangle
bottom
Type: SystemDouble
Distance from bottom edge of paper to bottom edge of CropRectangle

Return Value

Type: Boolean
True if successful. False if unsuccessful (this could happen if there is no set device_dpi)
Version Information

Rhino for Windows

Supported in: 6.14
See Also