AutoPlotWindow Object

The AutoPlotWindow object controls the plot window and is accessed through the Document object's Windows property.

Derived from: AutoWindow object (All methods and properties of AutoWindow apply to this object.)

Properties

AutoRedraw

AutoTrackWks

HorizontalRuler

PageUnits

Resolution

ShowBitmaps

ShowGrid

ShowMargins

ShowPage

ShowRulers

VerticalRuler

Methods

RecalcPlots

Redraw

Zoom

ZoomPoint

ZoomRectangle

Example

The following script demonstrates how to access a new window.

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")

 

 'Make Grapher visible

  GrapherApp.Visible = True

 

 'Declare Docs as Object

  Dim Docs As Object

 

 'Assigns the Documents collection to

 'the variable named "Docs"

  Set Docs = GrapherApp.Documents

 

 'Declare Plot as Object

  Dim Plot As Object

 

 'Creates a new plot window

  Set Plot = Docs.Add(grfPlotDoc)

 

 'Declares PlotWindow as an object

  Dim PlotWindow As Object

 

 'Assigns the new plot window to the

 'variable named "PlotWindow"

  Set PlotWindow = Plot.NewWindow

 

End Sub