Symbol Object

The Symbol object represents a graphical symbol used to represent a point in the drawing. Symbols are created by the Shapes.AddSymbol method.

Derived from: Shape object(All methods and properties of Shape apply to this object.)

The following table provides all the properties of the Symbol object.

Property

Description

Marker

Returns the symbol format object. It is a read-only property.

Example

The following script demonstrates how the Symbol object is used in reference to the Shapes 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 Plot as an object

Dim Plot As Object

 

'Creates a plot document in Surfer and assigns it to the variable

'named "Plot"

Set Plot = SurferApp.Documents.Add(srfDocPlot)

 

'Declares Shapes as an object

Dim Shapes As Object

 

'Assigns the Shapes collection to the variable named "Shapes"

Set Shapes = Plot.Shapes

 

'Declares Symbol as an object

Dim Symbol As Object

 

'Creates a symbol and assigns it to the variable named "Symbol"

Set Symbol = Shapes.AddSymbol(5,7)

 

End Sub