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


IColor.Transparency Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

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(
  Byte alphaValue
);
[C++]

Parameters alphaValue [out, retval] alphaValue is a parameter of type Byte alphaValue [in] alphaValue is a parameter of type Byte

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