Document Object

The Document object is the base object for document objects (plot, worksheet). Document objects are not directly usable; they only serve as a base object that defines common document functionality. All the properties and methods below are available for any object derived from the document object, such as PlotDocument or WksDocument.

The following table provides the properties of the Document object. All these properties are read-only properties.

Property

Description

Application

Returns the application object.

FullName

Returns the name of the document including the path.

Index

Returns this document's ordinal index in the Documents collection.

Name*

Returns the name of the document

Parent

Returns the parent object.

Path

Returns the pathname of the document.

Saved

Returns False if document has changed since it was last saved.

Type

Returns the type of this document.

Windows

Returns a Windows collection containing the windows associated with this document.

The following table provides the methods of the Document object:

Method

Description

Activate

Activates the first window associated with this document.

Close

Closes the document and all associated windows.

NewWindow

Creates a new window for this document.

Save

Saves the document to disk using the current file name.

SaveAs

Saves the document to disk.

*default property