ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TinFaceRendererDefinition Class / TinFaceRendererDefinition Constructor / TinFaceRendererDefinition Constructor(CIMSymbolReference,String,String)
The symbol used in the renderer. The symbol should be a ArcGIS.Core.CIM.CIMPolygonSymbol.
The label that will show up on the TOC next to the symbol.
The description.
Example

In This Topic
    TinFaceRendererDefinition Constructor(CIMSymbolReference,String,String)
    In This Topic
    Creates a simple renderer definition to draw faces in a surface layer.
    Syntax
    public TinFaceRendererDefinition( 
       CIMSymbolReference symbol,
       string label,
       string description
    )
    Public Function New( _
       ByVal symbol As CIMSymbolReference, _
       Optional ByVal label As String, _
       Optional ByVal description As String _
    )

    Parameters

    symbol
    The symbol used in the renderer. The symbol should be a ArcGIS.Core.CIM.CIMPolygonSymbol.
    label
    The label that will show up on the TOC next to the symbol.
    description
    The description.
    Example
    Simple Face Renderer
    var simpleFaceRendererDef = new TinFaceRendererDefinition();
    simpleFaceRendererDef.SymbolTemplate = polySymbol.MakeSymbolReference();
    
    if (surfaceLayer.CanCreateRenderer(simpleFaceRendererDef))
    {
      CIMTinRenderer renderer = surfaceLayer.CreateRenderer(simpleFaceRendererDef);
      if (surfaceLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Surface))
        surfaceLayer.SetRenderer(renderer, SurfaceRendererTarget.Surface);
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also