ItineraryVisible property
Returns or sets whether the Directions pane is visible. For the MapPoint Control, a map must be open. Read/write Boolean.
Applies to
Objects: Application, MappointControl
Syntax
object.ItineraryVisible
Parameters
Part | Description |
---|---|
object | Required. An expression that returns an Application or MappointControl object. |
Remarks
To open a map in the Control, use the NewMap method to open a map based on a template or the OpenMap method to open an existing .ptm file.
Example
Sub HideItinerary()
Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objRoute As MapPoint.Route
'Set up the application
Set objMap = objApp.ActiveMap
Set objRoute = objMap.ActiveRoute
objApp.Visible = True
objApp.UserControl = True
'Add two waypoints and calculate a route
objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)
objRoute.Calculate
'Itinerary automatically becomes visible above; now hide it
objApp.ItineraryVisible = False
End Sub
Note This sample code is specific for use in MapPoint North America; it is for illustration purposes only.