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


IColor.Transparency Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IC > IColor Interface > IColor.Transparency Property
ArcGIS Developer Help

IColor.Transparency Property

The Alpha Blending value. (0 for transparent, 255 for opaque).

[Visual Basic .NET]
Public Property Transparency As Byte
[C#]
public byte Transparency {get; set;}
[C++]
HRESULT get_Transparency(
  Byte alphaValue
);
[C++]
HRESULT put_Transparency(
  System.Byte* alphaValue
);
[C++]
Parameters
alphaValue [in]

alphaValue is a parameter of type unsigned char alphaValue [out, retval]
alphaValue is a parameter of type unsigned char*

Product Availability

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

Description

Transparency is the degree to which a color is opaque. True transparency is only supported at the layer level. For graphic elements, 0 for transparent and 255 for opaque are the only supported values. Use either the ILayerEffects or ITransparencyRenderer interfaces to set layer transparency. For layer transparency to work properly the display device must be set to "True Color (32 bit)".

Remarks

The default value is 255.

See Also

IColor Interface