Hex Editor - Binary File Editing Software for Windows
Download Hex Editor Neo Hide this button

Document Object

Document object represents a document for a running script. Each opened document is represented as a single object instance. Document object implements the IDocument interface.

You can query and set object's properties and call methods to control the document instance.

IDocument.name property returns the current document's name (usually a file or device path). IDocument.size property returns the current size of a document. You can also change the size by simply assigning to this property.

All document views can be accessed using the IDocument.views property.

Changes made to the document may be saved using IDocument.saveAsync and IDocument.saveAsAsync methods. Document history can be accessed using the IDocument.undo and IDocument.redo methods.

An ongoing asynchronous operation may be cancelled at any time by calling the IDocument.cancel method.

A document may be closed with a help of IDocument.close method.