Click or drag to resize

ViewportInfoZoomToScreenRect Method (Rectangle)

Zooms to a screen zone.

View changing from screen input points. Handy for using a mouse to manipulate a view. ZoomToScreenRect() may change camera and frustum settings.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool ZoomToScreenRect(
	Rectangle windowRectangle
)

Parameters

windowRectangle
Type: System.DrawingRectangle
The new window rectangle in screen space.

Return Value

Type: Boolean
true if the operation succeeded; otherwise, false.
See Also