Method Erase
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Erase(IEnumerable<DxfEntity>)
Erases objects, as ERASE does: the drawing then has none of them, and an undo brings them back. One undo step named ERASE.
public void Erase(IEnumerable<DxfEntity> entities)
Parameters
entitiesIEnumerable<DxfEntity>The drawing's objects to erase.
Exceptions
- ArgumentNullException
Thrown when the list is null.
- ArgumentException
Thrown when an object of the list is null.
- InvalidOperationException
Thrown when an object is refused, as the remarks say.