Method OutlineOf
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
OutlineOf(DxfViewport)
Gets the outline a clipped viewport shows model space through: its clip boundary (NonRectClipEntity) as a ring of paper units, a circle or the arcs of a polyline kept as arcs. Null for a viewport that is not clipped, and for one whose boundary has no outline the library reads, which is shown as the rectangle of its frame. A region gives a ring for each loop of each face, in the outline's Others.
public static DisplayClip2 OutlineOf(DxfViewport viewport)
Parameters
viewportDxfViewportThe viewport.
Returns
- DisplayClip2
The outline, or null.
Exceptions
- ArgumentNullException
Thrown when the viewport is null.