Address property
Returns the target, or address (URL), of the specified hyperlink. Read-only String.
Applies to
Objects: Hyperlink
Syntax
object.Address
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a Hyperlink object. |
Remarks
To set hyperlinks for a Pushpin set, use the HyperlinkType property of a DataSet object.
To set hyperlinks for a Web page, use the IncludeHyperlinks property of a SavedWebPage object.
Example
Sub GetHyperlinkAddress()
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
Set objPin = objMap.AddPushpin(objMap.FindResults("Seattle, WA")(1))
objPin.BalloonState = geoDisplayBalloon
'Set the hyperlink then get the address
objMap.DataSets(1).HyperlinkType = geoHyperlinkNotes
objPin.Note = "https://www.microsoft.com/mappoint"
MsgBox "Hyperlink Web address: " + objPin.Hyperlink.Address
End Sub
Note This sample code is specific for use in MapPoint North America; it is for illustration purposes only.