Graticule Object

 

The Graticule object contains the properties and methods of a map graticule.

 

Properties

Application

AutoGraticuleRange

BkFill

FlipUpsideDownText

GraticuleOnActiveLayer

GraticuleUnderMap

GratLabUnitType

GratUnitType

LatEnd

LatIncrement

LatLabelFont

LatLabelFormat

LatLabelFrequency

LatLabelOffset

LatLine

LatStart

LimitLat

LimitLon

LonEnd

LonIncrement

LonLabelFont

LonLabelFormat

LonLabelFrequency

LonLabelOffset

LonLine

LonStart

Parent

ShowBkFill

ShowBkFillUnderAllLayers

ShowLat

ShowLatEndLabel

ShowLatEndTick

ShowLatStartLabel

ShowLatStartTick

ShowLon

ShowLonEndLabel

ShowLonEndTick

ShowLonStartLabel

ShowLonStartTick

 

Methods

PlaceGraticuleOnLayer

 

Example

This example creates a graticule object.

 

Sub Main

'Declares mvApp as an object

 Dim mvApp As Object

 

'Creates an instance of the MapViewer Application

'object and assigns it to the variable named "mvApp"

 Set mvApp = CreateObject("MapViewer.Application")

 

'Makes MapViewer visible

 mvApp.Visible = True

 

'Declares Plot as an object

 Dim Plot As Object

 

'Creates a map document in MapViewer and assigns

'it to the variable named "Plot"

 Set Plot = mvApp.Documents.Add(mvDocPlot)

 

'Declares PlotLayers as an object

 Dim PlotLayers As Object

 

'Assigns the map document layers to the

'variable named "PlotLayers"

Set PlotLayers = Plot.Layers

 

'Declares CurrentLayer as an object

Dim CurrentLayer As Object

 

'Assigns the active plot layer to the

'variable named "CurrentLayer"

 Set CurrentLayer = PlotLayers.ActiveLayer

 

'Create a graticule object assigned to the

'variable named "Grat"

 Set Grat = Plot.CreateGraticule

End Sub