Method SetCurrentView
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetCurrentView(DisplayBox)
Sets the view to show a box, fitted with no margin as ZOOM Window fits one: the canvas shows the whole box and, along one axis, more. One undo step named ZOOM.
public void SetCurrentView(DisplayBox box)
Parameters
boxDisplayBoxThe box, in the world.
Exceptions
- ArgumentException
Thrown when the box is empty, not finite, or has no width or no height.