Share via


Select method

Selects a DataSet (on the Legend pane only), Direction (on the Directions pane, or if the Directions pane is closed, on the map), Location, Pushpin, Shape, or Waypoint object.

Applies to

Objects:  DataSet, Direction, Location, Pushpin, Shape, Waypoint

Syntax

object.Select

Parameters

Part Description
object Required. An expression that returns an object in the Applies to list.

Example

    Sub SelectPushpin()

  Dim objApp As New MapPoint.Application   Dim objLoc As MapPoint.Location   Dim objPin As MapPoint.Pushpin
  'Set up application and get a Location object   objApp.Visible = True   objApp.UserControl = True   Set objLoc = objApp.ActiveMap.GetLocation(0, 0)
  'Create a Pushpin   Set objPin = objApp.ActiveMap.AddPushpin(objLoc)
  'Zoom the map view to the Pushpin and then select the Pushpin   objPin.Location.GoTo   objPin.Select
  End Sub