Method Reset
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Reset(bool, int)
Keeps the first vertices and takes the others out, as AutoCAD's Reset: where the vertices are reused, as many
as given are kept. A polyline keeps two vertices at least, so a reset that would leave fewer is refused.
public void Reset(bool reuse, int vertices)
Parameters
reuseboolWhether the first vertices are kept; where they are not, none would be, which is refused.
verticesintHow many are kept where they are reused.
Exceptions
- ArgumentOutOfRangeException
Thrown when the count is below nought.
- InvalidOperationException
Thrown when fewer than two vertices would be left, or the polyline is erased.