AutoAxisGrid Object

The AutoAxisGrid object controls the axis grid line settings and is accessed from the AutoAxis object Grid property.

Properties

Application

AtMajorLabelsOnly

AtMajorTicks

AtMinorLabelsOnly

AtMinorTicks

ConnectGridLine

MajorArrowScale

MajorEndArrow

MajorLine

MajorStartArrow

MinorArrowScale

MinorEndArrow

MinorLine

MinorStartArrow

ParallelTo

Parent

ReadDataByRow

ShareGridLine

UseWorksheet

WksArrowScale

WksEndArrow

WksStartArrow

Worksheet

WorksheetColumn

WorksheetLine

Example

The following script demonstrates how the AutoAxisGrid 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 plot document in Grapher and assigns

 'it to the variable named "Plot"

  Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

 

 'Declares Graph as an object

  Dim Graph As Object

 

 'Creates a graph and assigns it to the variable

 'named "Graph"

  Set Graph = Plot.Shapes.AddLinePlotGraph(GrapherApp.Path+"\Samples\bar chart orientations.dat")

 

 'Declares Axes as an object

  Dim Axes As Object

 

 'Assigns the AutoAxes collection to the variable

 'named "Axes"

  Set Axes = Graph.Axes

 

 'Declares Axis as an object

  Dim Axis As Object

 

 'Assigns the X axis to the variable named "Axis"

  Set Axis = Axes(1)

 

 'Assigns the AutoAxisGrid object to the variable named "XAxisGrid"

 Set XAxisGrid = Axis.Grid

 

End Sub