Method ZoomWindow
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ZoomWindow(GeoPoint2, GeoPoint2)
Zooms to a window, as ZOOM Window: the window fitted with no margin, the view as wide or as high as the canvas shape makes it. In the reference view the window (0, 0) to (10, 10) shows (-3.820, 0) to (13.820, 10). Through a locked viewport the corners are points of model space, shown on the paper where it zooms. One undo step named ZOOM.
public void ZoomWindow(GeoPoint2 first, GeoPoint2 second)
Parameters
Exceptions
- ArgumentException
Thrown when a corner is not a finite point, or the window has no width or no height.