Method ZoomTo
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ZoomTo(DisplayBox, double)
Shows a box wholly, with a margin, as ZOOM Extents does; through a twisted viewport the box turned.
public void ZoomTo(DisplayBox box, double marginFraction = 0.05)
Parameters
boxDisplayBoxThe box; an empty box shows the origin at 1 pixel to the unit.
marginFractiondoubleThe margin as a fraction of the canvas, 0.05 for 5 per cent on each side.