Document Object
The Document object represents a plot document. Document objects are created by the Documents.Add or Documents.Open methods of the Application object.
Properties
Methods
Example
The following script demonstrates how the Document object is used.
Sub Main
'Declares GrapherApp as an object
Dim GrapherApp As Object
'Creates an instance of the Grapher Application object
'and assigns it to the variable named "GrapherApp"
Set GrapherApp = CreateObject("Grapher.Application")
'Makes Grapher visible
GrapherApp.Visible = True
'Creates a document object and assigns it to the variable named "Plot"
Set Plot = GrapherApp.Documents.Add(grfPlotDoc)
End Sub