RhinoCommon API
ViewportInfoGetScreenPort Method (Int32, Int32) |
Gets the location of viewport in pixels.
See value meanings in SetScreenPort.
Namespace: Rhino.DocObjects
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0

public Rectangle GetScreenPort( out int near, out int far )
Public Function GetScreenPort ( <OutAttribute> ByRef near As Integer, <OutAttribute> ByRef far As Integer ) As Rectangle
Parameters
- near
- Type: SystemInt32
The near value. This out parameter is assigned during the call. - far
- Type: SystemInt32
The far value. This out parameter is assigned during the call.
Return Value
Type: RectangleThe rectangle, or Empty rectangle on error.
