AutoLine Object

The AutoLine object contains the properties associated with lines. This object is used to encapsulate the line properties within other objects.

Properties

Application

ArrowScale

EndArrow

ForeColor

ForeOpacity

Parent

StartArrow

Style

Width

Example

The following script demonstrates how the AutoLine object is used in reference to the AutoPlot object.

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

 

 'Declares Plot as an object

  Dim Plot As Object

 

 'Creates a plot document in Grapher and assigns

 'it to the variable named "Plot"

  Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

 

 'Declares Shapes as an Object

  Dim Shapes As Object

 

 'Assigns the AutoShapes collection to the

 'variable named "Shapes"

  Set Shapes = Plot.Shapes

 

 'Declares LineGraph as an object

  Dim LineGraph As Object

 

 'Creates a graph and assigns it to the

 'variable named "LineGraph"

  Set LineGraph = Shapes.AddLinePlotGraph(GrapherApp.Path+"\samples\bar chart orientations.dat")

 

 'Declare LinePlot as an object

  Dim LinePlot As Object

 

 'Set LinePlot to the first line plot on

 'the LineGraph graph

  Set LinePlot = LineGraph.Plots.Item(1)

 

 'Declares LineFormat as an object

  Dim LineFormat As Object

 

 'Assigns the plot line properties to the

 'variable named "LineFormat"

  Set LineFormat = LinePlot.Line

 

End Sub