ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TinContourRendererDefinition Class / TinContourRendererDefinition Constructor / TinContourRendererDefinition Constructor(CIMSymbolReference,String,String,CIMSymbolReference,String,String)
The symbol template.
The symbol label.
The description.
The index symbol template.
The index symbol label.
The index description.
Example

In This Topic
    TinContourRendererDefinition Constructor(CIMSymbolReference,String,String,CIMSymbolReference,String,String)
    In This Topic
    Creates a contour renderer definition.
    Syntax

    Parameters

    symbolTemplate
    The symbol template.
    label
    The symbol label.
    description
    The description.
    indexSymbolTemplate
    The index symbol template.
    indexLabel
    The index symbol label.
    indexDescription
    The index description.
    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);
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also