AutoFill Object
The AutoFill object contains the properties for any object that may be filled, such as an ellipse, rectangle, legend backgrounds, etc.
Properties
Methods
Example
The following script demonstrates how the AutoFill object is used in reference to the AutoEllipse 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 Ellipse as an object
Dim Ellipse As Object
'Creates an ellipse and assigns it to the
'variable named "Ellipse"
Set Ellipse = Shapes.AddEllipse(5,7,6,10)
'Declares FillFormat as an object
Dim FillFormat As Object
'Assigns the fill properties of the ellipse
'to the variable named "FillFormat"
Set FillFormat = Ellipse.Fill
End Sub