Method ZoomCenter
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ZoomCenter(GeoPoint2, double)
Zooms to a height about a centre, as ZOOM Center: the view shows the height given and as much width as the canvas has. In the reference view the centre (50, 50) and the height 20 show (32.360, 40) to (67.640, 60). One undo step named ZOOM.
public void ZoomCenter(GeoPoint2 center, double height)
Parameters
Exceptions
- ArgumentException
Thrown when the centre is not a finite point.
- ArgumentOutOfRangeException
Thrown when the height is not a finite number above nought.
- InvalidOperationException
Thrown through a viewport, where ZOOM offers no Center.