Table of Contents

Method SetClipBoundary

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetClipBoundary(IReadOnlyList<GeoPoint2>)

Sets the clip boundary, as AutoCAD's SetClipBoundary, and switches the clip on: two corners are a rectangle, written as AutoCAD 2021 writes it, the upper left and the lower right, so that (1, 1) and (2, 2) are (1, 2) and (2, 1); three or more are a polygon, written as given. The page's inches from its lower left corner, before the scale.

public void SetClipBoundary(IReadOnlyList<GeoPoint2> corners)

Parameters

corners IReadOnlyList<GeoPoint2>

The corners, two or at least three of finite numbers.

Exceptions

ArgumentNullException

Thrown when the corners are null.

ArgumentException

Thrown when there is one corner, or a corner is not of finite numbers.

InvalidOperationException

Thrown when the underlay is erased.