Share via


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

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.