Table of Contents

Method CloseAndDiscard

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CloseAndDiscard(CadDocument)

Closes a drawing and throws away its changes not saved, as the x of its row does once the question is answered Don't save.

public void CloseAndDiscard(CadDocument document)

Parameters

document CadDocument

The drawing, open.

Exceptions

ArgumentNullException

Thrown when the drawing is null.

ArgumentException

Thrown when the drawing is not open.

InvalidOperationException

Thrown, and nothing changes, where a command runs in it, or with no window.