Method SetBreaks
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetBreaks(int, IEnumerable<DxfLeaderBreak>)
Sets the breaks of a leader line, in place of those it has, as AutoCAD 2021 writes them: grouped by segment, the segments in order, after the line's vertices. Explode() gives the line whole, as AutoCAD's does; ExplodeBroken() gives it cut at the breaks, as AutoCAD draws it. A line of one segment, from (0, 0, 0) to (100, 0, 0), given a break from (39.9375, 0, 0) to (40.0625, 0, 0) is drawn in two, to 39.9375 and from 40.0625.
public void SetBreaks(int leaderLineIndex, IEnumerable<DxfLeaderBreak> breaks)
Parameters
leaderLineIndexintThe index of the line.
breaksIEnumerable<DxfLeaderBreak>The breaks; none takes those it has away.
Exceptions
- ArgumentNullException
Thrown when the breaks are null.
- ArgumentOutOfRangeException
Thrown when the MULTILEADER has no line of the index.
- ArgumentException
Thrown when a break has a negative segment or a point that is not a finite number.
- InvalidOperationException
Thrown when the MULTILEADER is erased.