AddSymbol
AddSymbol adds a new symbol. Returns a Symbol object.
Syntax
object.AddSymbol( x, y )
Parameter |
Type |
Default |
Description |
x |
Double |
|
required; This provides the X coordinate of the point where the symbol or point is to be inserted. |
y |
Double |
|
required; This provides the Y coordinate of the point where the symbol or point is to be inserted. |
Remarks
Either page units or map coordinates are used for the parameters. When the symbol is added to the plot, use page units for the coordinates. When the symbol is added to a map layer, use map coordinates to specify the coordinates.
This adds a new symbol, and returns a Symbol object. The Symbol object has a single property, which is Marker property The marker property allows you to set the symbol format, as it returns a MarkerFormat object. Use MarkerFormat to change the symbol properties.
Example 1
This example demonstrates how to create a symbol.
'declare Symbol object and create a point
Dim Symbol As Object
Set Symbol = Shapes.AddSymbol(x:=5, y:=7)
Example 2
This example demonstrates how to return the color of a symbol.
'return the symbol color
Debug .Print Symbol.Marker.Color
Example 3
This script displays all the methods and properties in the Shapes collection.
Used by: Shapes collection