BalloonState property

Returns or sets the state of Pushpin balloon text; similar to right-clicking a Pushpin on the map and clicking either Show Information, Show Name, or Hide Name. Read/write GeoBalloonState.

GeoBalloonState Value Description
geoDisplayBalloon
2
Displays all of the text for a Pushpin in the text balloon
geoDisplayName
1
Displays only the name of the Pushpin in the text balloon
geoDisplayNone
0
Does not display a text balloon for the Pushpin

Applies to

Objects:  Pushpin

Syntax

object.BalloonState

Parameters

Part Description
object Required. An expression that returns a Pushpin object.

Example

    Sub ShowPushpinBalloon()

  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, then show its balloon   Set objPin = objMap.AddPushpin(objMap.FindResults("Seattle, WA")(1))   objPin.BalloonState = geoDisplayBalloon
  End Sub

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