GridWindow Object
The GridWindow object contains the options for displaying the grid in the Grid Editor. GridWindows are created when a grid file is loaded by Document.Open2
Derived from: Window object (All methods and properties of Window apply to this object.)
The following table provides all the properties of the GridWindow object :
Property |
Description |
Shows/hides the contour lines. |
|
Shows/hides the grid node symbols. |
The following table provides all the methods of the GridWindow object :
Method |
Description |
Redraw the contents of this window. |
|
Zoom in or out. |
Example
The following script demonstrates how the GridWindow object is used in reference to the Documents collection.
Sub Main
'Declares SurferApp as an object
Dim SurferApp As Object
'Creates an instance of the Surfer Application object and assigns
'it to the variable named "SurferApp"
Set SurferApp = CreateObject("Surfer.Application")
'Makes Surfer visible
SurferApp.Visible = True
'Declares Docs as an object
Dim Docs As Object
'Assigns the Documents collection to the variable named "Docs"
Set Docs = SurferApp.Documents
'Declares GridWindow as an object
Dim GridWindow As Object
'Opens a grid window and assigns it to the variable named
'"GridWindow"
Set GridWindow = Docs.Open(SurferApp.Path+"\Samples\Demogrid.grd")
End Sub