ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TinFaceRendererDefinition Class
Members Example

In This Topic
    TinFaceRendererDefinition Class
    In This Topic
    Represents a simple renderer definition to draw all faces in a surface layer with a common symbol.
    Object Model
    TinFaceRendererDefinition ClassCIMSymbolReference Class
    Syntax
    public class TinFaceRendererDefinition : TinSimpleRendererDefinition 
    Public Class TinFaceRendererDefinition 
       Inherits TinSimpleRendererDefinition
    Remarks
    The symbol used to define the TinSimpleRendererDefinition.SymbolTemplate should be a ArcGIS.Core.CIM.CIMPolygonSymbol.

    Once you define a simple renderer, you can call a surface layer's CanCreateRenderer, CreateRenderer, CanSetRenderer and SetRenderer methods to create and assign a renderer to a surface layer.

    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);
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.LayerDrawingDefinition
          ArcGIS.Desktop.Mapping.TinRendererDefinition
             ArcGIS.Desktop.Mapping.TinSimpleRendererDefinition
                ArcGIS.Desktop.Mapping.TinFaceRendererDefinition

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also