UseTransparency property

Returns or sets whether the background for the specified symbol is transparent. The color of the top left pixel of an imported image is used as the transparency color. Returns True if transparent and not displayed. Always True for the MapPoint standard symbols; returns an error if set. Read/write Boolean.

Applies to

Objects:  Symbol

Syntax

object.UseTransparency

Parameters

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

Remarks

To return or set the symbol for a Pushpin or Pushpin set, use the Symbol property on a DataSet or Pushpin object.

Example

    Sub CustomPPSymbol()
    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objSymbol As MapPoint.Symbol
    objApp.Visible = True
    objApp.UserControl = True

    Set objMap = objApp.ActiveMap     'Import a custom symbol     Set objSymbol = objMap.Symbols.Add(objApp.Path & "\Samples\CAirport.bmp")     Set objpin = objMap.AddPushpin(objMap.GetLocation(-1.25955, 53.81077), "LatLong")     objpin.Location.GoTo     objpin.Symbol = objSymbol     'Change the transparency property     objSymbol.UseTransparency = False
  End Sub