IsHighlightable property
Returns whether a place can be highlighted. Read-only Boolean.
Applies to
Objects: Location
Syntax
object.IsHighlightable
Parameters
Part |
Description |
---|---|
object |
Required. An expression that returns a Location object. |
Remarks
- To highlight a place or Pushpin, use the Highlight property of a Location or Pushpin object.
Example
Sub CanYouHighlightThisObject()
Dim objApp As New MapPoint.Application
Dim objLoc1 As MapPoint.Location
Dim objLoc2 As MapPoint.Location
'Set up application and get two Location objects
objApp.Visible = True
objApp.UserControl = True
Set objLoc1 = objApp.ActiveMap.GetLocation(47.6008, -122.334)
Set objLoc2 = objApp.ActiveMap.FindResults("Seattle, WA")(1)
'Determine whether you can highlight the first location
If objLoc1.IsHighlightable = True Then
objLoc1.Highlight = True
Else
MsgBox "Cannot highlight first Location object, trying second."
End If
'Try highlighting the second location object
If objLoc2.IsHighlightable = True Then objLoc2.Highlight = True
End Sub
Note This sample code is specific for use in MapPoint North America; it is for illustration purposes only.