Method ZoomObjects
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ZoomObjects(IEnumerable<string>)
Zooms to objects, as ZOOM Object: the box of the objects as the space shown draws them, fitted with a margin of 5 %. Objects that are not drawn in the space shown (of another layout, erased, not in the drawing) leave the view as it was, and so does a list with none. This is not the Find dialog's zoom, which switches space. One undo step named ZOOM, none where the view stays.
public void ZoomObjects(IEnumerable<string> handles)
Parameters
handlesIEnumerable<string>The handles of the objects.
Exceptions
- ArgumentNullException
Thrown when the handles are null.
- InvalidOperationException
Thrown through a viewport, where ZOOM offers no Object.