Application Object
Application 对象是Grapher Automation的顶级对象,包括其他对象。
The Application object represents the Grapher program. It is a single instance of Grapher and it is the root of all objects in Grapher. External programs typically create an instance of the Application object during initialization**. In VB this is done using the CreateObject function as in:**
Set GrapherApp = CreateObject(“Grapher.Application”)
The CreateObject function activates a new instance of Grapher, and returns a reference to the Application object to the script.
When Grapher is started by a script, its main window is initially hidden. To make the Grapher window visible, you must set the Application object’s Visible property to True:
当grapher由脚本启动时,其主窗口最初是隐藏的。若要使图示器窗口可见,必须将应用程序对象的Visible属性设置为true:
Set GrapherApp = CreateObject(“Grapher.Application”)
GrapherApp.Visible = True
AutoPlot Object
The AutoPlot object is the basic plot object from which most plots are derived.
autoplot对象是基本绘图对象,大多数的绘图都是由它派生的。
Derived from: AutoShape object (All methods and properties of AutoShape apply to this object.)
派生自:AutoShape object,继承了AutoShape object的所有对象和方法(AutoShape object的所有方法和属性都应用于此对象。)
Dim GrapherApp As Object
Set GrapherApp = CreateObject(“Grapher.Application”) '创建Grapher.Applicatio对象
GrapherApp.Visible = True’设置grapher窗口可见
Dim Plot As Object
Set Plot = GrapherApp.Documents.Add(grfPlotDoc)'AutoPlot 对象
Dim Shapes As Object
Set Shapes = Plot.Shapes’shapes对象
AutoGraph Object
AutoGraph 对象包含对Graph(图形)的设置
Dim GrapherApp As Object
Set GrapherApp = CreateObject(“Grapher.Application”) '创建Grapher.Applicatio对象
GrapherApp.Visible = True’设置grapher窗口可见
Dim Plot As Object
Set Plot = Gr