ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / UniqueValueRendererDefinition Class / SymbolTemplate Property
Example

In This Topic
    SymbolTemplate Property (UniqueValueRendererDefinition)
    In This Topic
    Gets or sets a template for symbol used in the renderer.
    Syntax
    public CIMSymbolReference SymbolTemplate {get; set;}
    Public Property SymbolTemplate As CIMSymbolReference
    Example
    Defining a unique value renderer definition
    var uvrDef = new UniqueValueRendererDefinition()
    {
      ValueFields = new List<string> { "ACTYPE" },
      SymbolTemplate = SymbolFactory.Instance.ConstructPointSymbol(
        ColorFactory.Instance.RedRGB, 10, SimpleMarkerStyle.Hexagon)
          .MakeSymbolReference(),
      ValuesLimit = 5
    };
    //Note: CreateRenderer can only create value classes based on
    //the current events it has received
    streamLayer.SetRenderer(streamLayer.CreateRenderer(uvrDef));
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also