AutoMarker Object

The AutoMarker object contains the symbol properties.

Properties

Application

Color

Fill

Index

Line

LineColor

LineOpacity

NoFill

Opacity

Parent

Set

Size

Methods

SetProperties

Example

The following script demonstrates how the AutoMarker object is used in reference to the AutoSymbol 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 Sym1 as an object

  Dim Sym1 As Object

 

 'Creates a symbol and assigns it to the

 'variable named "Sym1"

  Set Sym1 = Shapes.AddSymbol( 2, 5)

 

 'Declares MarkerFormat as an object

  Dim MarkerFormat As Object

 

 'Assigns the symbol properties to the variable

 'named "MarkerFormat"

  Set MarkerFormat = Sym1.Marker

 

End Sub