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 |
Returns the application object. |
|
Returns the name of the document including the path. |
|
Returns this document's ordinal index in the Documents collection. |
|
Name* |
Returns the name of the document |
Returns the parent object. |
|
Returns the pathname of the document. |
|
Returns False if document has changed since it was last saved. |
|
Returns the type of this document. |
|
Returns a Windows collection containing the windows associated with this document. |
The following table provides the methods of the Document object:
Method |
Description |
Activates the first window associated with this document. |
|
Closes the document and all associated windows. |
|
Creates a new window for this document. |
|
Saves the document to disk using the current file name. |
|
Saves the document to disk. |
*default property