Method Close
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Close(CadDocument)
Closes a drawing that has no changes unsaved, as the x of its row does: it leaves the list, and the next drawing is shown, or the start screen where it was the last. Nothing is asked and nothing is saved.
public void Close(CadDocument document)
Parameters
documentCadDocumentThe drawing, open.
Exceptions
- ArgumentNullException
Thrown when the drawing is null.
- ArgumentException
Thrown when the drawing is not open.
- InvalidOperationException
Thrown, and nothing changes, where the drawing has changes not saved (save it, or use CloseAndSave(CadDocument) or CloseAndDiscard(CadDocument)), where a command runs in it, or with no window.