AutoRuler Object

 

The AutoRuler object controls ruler settings. This object is accessed from the AutoPlotWindow HorizontalRuler and VerticalRuler properties.

 

Properties

Application

BackColor

FontBold

FontColor

FontFace

FontItalic

FontSize

FontStrikethrough

FontUnderline

GridDivisions

LineColor

Parent

RulerDivisions

ShowPosition

SnapToRuler

 

Example

This example shows how to reference the horizontal ruler in the plot 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 and assigns it

 'to the variable named "Plot"

  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

 

 'Declares Ruler as Object

  Dim Ruler As Object

 

 'Assigns the horizontal ruler to the

 'variable named "Ruler"

  Set Ruler = PlotWindow.HorizontalRuler

End Sub