RhinoCommon API
ViewCaptureSettingsSetMargins Method |
Set distances from the edge of the paper (MediaSize) to the CropRectange
in a defined unit system
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool SetMargins( UnitSystem lengthUnits, double left, double top, double right, double bottom )
Public Function SetMargins ( lengthUnits As UnitSystem, left As Double, top As Double, right As Double, bottom As Double ) As Boolean
Parameters
- lengthUnits
- Type: RhinoUnitSystem
Units that left, top, right, and bottom are defined 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: BooleanTrue if successful. False if unsuccessful (this could happen if there is no set device_dpi)

Rhino for Windows
Supported in: 6.8