This document is archived and information here might be outdated.  Recommended version.


IMapServerLayer.TransparentColor Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerLayer Interface > IMapServerLayer.TransparentColor Property
ArcGIS Developer Help

IMapServerLayer.TransparentColor Property

The color that is transparent (100 %).

[Visual Basic .NET]
Public Property TransparentColor As IColor
[C#]
public IColor TransparentColor {get; set;}
[C++]
HRESULT get_TransparentColor(
  IColor** Color
);
[C++]
HRESULT put_TransparentColor(
  IColor* Color
);
[C++]
Parameters
Color [out, retval]

Color is a parameter of type IColor** Color [in]
Color is a parameter of type IColor*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Setting a transparent color is valid only for formats that support transparency.  These include: png, png24 and gif. When adding a MapServerLayer to ArcMap the TransparentColor value is equal to the value of the BackgroundColor. Therefore, the background is transparent by default.

See Also

IMapServerLayer Interface