Method RemoveLastVertex
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
RemoveLastVertex(int)
Takes the last vertex of a leader line out, as AutoCAD's RemoveLastVertex, down to one: the vertex before it
becomes the point the leader's dogleg starts at, as it stands, the content left where it is, as AutoCAD 2021 makes it.
The line from (0, 0, 0) to the words "ABC" at (100, 50, 0) is landed at (0, 0, 0), its dogleg drawn to (8, 0, 0); with
no dogleg drawn (EnableDogleg) the dogleg starts at (0, 0, 0) all the same, and the vertex reads (8, 0, 0),
the end the dogleg would have, as GetLastVertex(int) reads it. A line keeps one vertex, as
RemoveFirstVertex(int) says; and the last vertex of a leader of more lines than one, the landing they all end
at, is not taken out, as AutoCAD 2021 refuses it.
public void RemoveLastVertex(int leaderLineIndex)
Parameters
leaderLineIndexintThe index of the line.
Exceptions
- ArgumentOutOfRangeException
Thrown when the MULTILEADER has no line of the index.
- InvalidOperationException
Thrown when the line has one vertex or none, or its leader has more lines than one, or the MULTILEADER is erased.