PaneState property
Returns or sets the state of the pane on the MapPoint window. Defaults to geoPaneNone for the MapPoint Control. Read/write GeoPaneState.
GeoPaneState | Value | Description |
---|---|---|
geoPaneLegend |
0
|
Displays the legend |
geoPaneNearbyPlaces |
2
|
Displays the Find Nearby Places pane |
geoPaneNone |
3
|
Displays the map only |
geoPaneRoutePlanner |
1
|
Displays the Route Planner pane |
geoPaneTerritory |
4
|
Displays the Territory Manager pane |
Applies to
Objects: Application, MappointControl
Syntax
object.PaneState
Parameters
Part | Description |
---|---|
object | Required. An expression that returns an Application or MappointControl object. |
Remarks
If a territory set has not yet been created on the map, setting the PaneState property to geoPaneTerritory returns an error.
You can create a territory using the following methods on a DataSets collection: ImportTerritories, LinkTerritories, ShowImportTerritoriesWizard, or ShowLinkTerritoriesWizard.
Example
Sub ShowRoutePlanner()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Show the Route Planner
objApp.PaneState = geoPaneRoutePlanner
End Sub