GoBack method
Returns to the previous map view; similar to clicking Back on the View menu. Fails if there is no previous map view.
Applies to
Objects: Map
Syntax
object.GoBack
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a Map object. |
Remarks
To reverse the action of the GoBack method, use the GoForward method on the Map object.
Example
Sub ZoomInThenGoBack()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Zoom the map in, then go back to the previous view
objApp.ActiveMap.ZoomIn
objApp.ActiveMap.GoBack
End Sub