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

In This Topic
    TinEdgeRendererDefintion Constructor(CIMSymbolReference,String,String)
    In This Topic
    Creates a simple renderer definition to draw edges in a surface layer.
    Syntax
    public TinEdgeRendererDefintion( 
       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.CIMLineSymbol.
    label
    The label that will show up on the TOC next to the symbol.
    description
    The description.
    Example
    Create a LasDatasetLayer with renderers
    //Must be on the QueuedTask.Run()
    
    var lasCP_renderers = new LasDatasetLayerCreationParams(lasDataset);
    lasCP_renderers.Name = "My LAS Layer";
    lasCP_renderers.IsVisible = false;
    
    // create a point elevation renderer
    var ptR = new LasStretchRendererDefinition();
    // accept all defaults
    
    // create a simple edge renderer
    var edgeR = new TinEdgeRendererDefintion();
    // accept all defaults
    
    // add renderers to dictionary
    var l_dict = new Dictionary<SurfaceRendererTarget, TinRendererDefinition>();
    l_dict.Add(SurfaceRendererTarget.Points, ptR);
    l_dict.Add(SurfaceRendererTarget.Edges, edgeR);
    
    // assign dictionary to creation params
    lasCP_renderers.RendererDefinitions = l_dict;
    
    //Create the layer to the LAS dataset
    var lasDatasetLayer_rd = LayerFactory.Instance.CreateLayer<LasDatasetLayer>(lasCP_renderers, map);
    
    Simple Edge Renderer
    // applies to TIN or LAS dataset layers only
    
    var edgeRendererDef = new TinEdgeRendererDefintion();
    edgeRendererDef.Description = "Edges";
    edgeRendererDef.Label = "Edges";
    edgeRendererDef.SymbolTemplate = lineSymbol.MakeSymbolReference();
    
    if (surfaceLayer.CanCreateRenderer(edgeRendererDef))
    {
      CIMTinRenderer renderer = surfaceLayer.CreateRenderer(edgeRendererDef);
      if (surfaceLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Edges))
        surfaceLayer.SetRenderer(renderer, SurfaceRendererTarget.Edges);
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also