RhinoCommon API
ViewportInfoSetScreenPort Method (Rectangle) |
Gets the location of viewport in pixels.
See value meanings in SetScreenPort.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool SetScreenPort( Rectangle windowRectangle )
Public Function SetScreenPort ( windowRectangle As Rectangle ) As Boolean
Parameters
- windowRectangle
- Type: System.DrawingRectangle
A new rectangle.
Return Value
Type: Booleantrue if input is valid.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8