Share via


Note property

Returns or sets the note text of the Pushpin. Read/write String.

Applies to

Objects:  Pushpin

Syntax

object.Note

Parameters

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

Example

    Sub AddPushpinNote()

  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 and give it a note   Set objPin = objMap.AddPushpin(objMap.FindResults("Seattle, WA")(1))   objPin.BalloonState = geoDisplayBalloon   objPin.Note = "This is where the journey begins."
  End Sub

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