ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMGraphic Class / Transparency Property
Example

In This Topic
    Transparency Property (CIMGraphic)
    In This Topic
    Gets or sets the transparency of the graphic as a percentage. Typically set by the layer or element during draw, but not persisted. Change the transparency of layers in the symbol for persistent changes.
    Syntax
    Public Property Transparency As Double
    public double Transparency {get; set;}
    Example
    Update an elements transparency
    {
      //Update an element's transparency using the CIM.
    
      //Note: Must be on QueuedTask.Run
    
      // Reference a element by name
      GraphicElement graphicElement = layout.FindElement("MyElement") as GraphicElement;
      if (graphicElement != null)
      {
        // Modify the Transparency property that exists only in the CIMGraphic class.
        CIMGraphic CIMGraphic = graphicElement.GetGraphic() as CIMGraphic;
        CIMGraphic.Transparency = 50; // mark it 50% transparent
        graphicElement.SetGraphic(CIMGraphic);
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also