Method InsertVertexAt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
InsertVertexAt(DxfVertex2d, DxfVertex2d)
Puts a vertex made in code after a vertex of the polyline, as AutoCAD's InsertVertexAt; before the first where
the vertex given is null.
public void InsertVertexAt(DxfVertex2d indexVertex, DxfVertex2d newVertex)
Parameters
indexVertexDxfVertex2dThe vertex of this polyline the new one follows; null to put it first.
newVertexDxfVertex2dThe vertex, in no polyline.
Exceptions
- ArgumentNullException
Thrown when the new vertex is null.
- ArgumentException
Thrown when the vertex it is to follow is not of this polyline.
- InvalidOperationException
Thrown when the new vertex is of a polyline already, or the polyline is erased.