discard()

Description

Discards the document that is being edited and removes it from the document editor.

Syntax

DocumentEditorObject.document.discard();

Parameters

None

Return value

bool

Remarks

When an error occurs, check getErrorCode() or getErrorString() for error information.

Example

             var documenteditor = DCSObject.getDocumentEditor("DocumentEditorContainer");  // Gets a specified document editor
             documenteditor.document.discard();
       

See also

.document.save()
.document.saveAs()