ZoomTo method

MapPoint North America 2004 SDK

Zooms to the best map view of the specified DataSet object or DataSets collection.

Applies to

Collections:  DataSets

Objects:  DataSet

Syntax

object.ZoomTo

Parameters

Part Description
object Required. An expression that returns a collection or object in the Applies to list.

Example

  Sub ZoomToPushpinSet()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map   Dim objPin As MapPoint.Pushpin

  'Set up the application   Set objMap = objApp.ActiveMap   objApp.Visible = True   objApp.UserControl = True
  'Add a Pushpin to the map   objMap.AddPushpin objMap.FindResults("Seattle, WA")(1)
  'Zoom to the newly created Pushpin set   objMap.DataSets.ZoomTo
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.

Show: