ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMTinContourRenderer Class
Members Example

In This Topic
    CIMTinContourRenderer Class
    In This Topic
    Represents a TIN contour renderer.
    Object Model
    CIMTinContourRenderer ClassCIMTinContourRenderer ClassCIMSymbolReference ClassCIMTinContourRenderer ClassCIMSymbolReference Class
    Syntax
    Example
    Contour Renderer
    var contourDef = new TinContourRendererDefinition();
    
    // now customize with a symbol
    contourDef.Label = "Contours";
    contourDef.SymbolTemplate = contourLineSymbol.MakeSymbolReference();
    contourDef.ContourInterval = 6;
    
    contourDef.IndexLabel = "Index Contours";
    contourDef.IndexSymbolTemplate = indexLineSymbol.MakeSymbolReference();
    contourDef.ContourFactor = 4;
    contourDef.ReferenceHeight = 7;
    
    if (surfaceLayer.CanCreateRenderer(contourDef))
    {
      CIMTinRenderer renderer = surfaceLayer.CreateRenderer(contourDef);
      if (surfaceLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Contours))
        surfaceLayer.SetRenderer(renderer, SurfaceRendererTarget.Contours);
    }
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CIM.CIMObject
          ArcGIS.Core.CIM.CIMTinRenderer
             ArcGIS.Core.CIM.CIMTinContourRenderer

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also