Name property (Symbol)

Returns or sets the name of the Symbol object. The name for symbols is its ToolTip. Setting the name for the MapPoint standard symbols will return an error. Read/write String.

Applies to

Objects:  Symbol

Syntax

object.Name

Parameters

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

Remarks

For the names of the MapPoint standard symbols, see the ToolTips in the Symbol property topic.

Example

    Sub ShowSymbolName()
    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objLoc As MapPoint.Location
    Dim objSymbol As MapPoint.Symbol
    Dim objPushpin As MapPoint.Pushpin

    'Set up application and Pushpin object     objApp.Visible = True     objApp.UserControl = True     Set objMap = objApp.ActiveMap     Set objLoc = objMap.GetLocation(0, 0)     Set objPushpin = objMap.AddPushpin(objLoc)     Set objSymbol = objMap.Symbols.Item(83)     Let objPushpin.Symbol = objSymbol     objPushpin.BalloonState = geoDisplayBalloon
    'Add the symbol name to the Pushpin note     objPushpin.Note = "This symbol is a " & objSymbol.Name
    'Zooms to object to see the results     objPushpin.Location.GoTo     objMap.Altitude = 1000   End Sub