ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SimpleRendererDefinition Class / SymbolTemplate Property
Example

In This Topic
    SymbolTemplate Property (SimpleRendererDefinition)
    In This Topic
    Gets or sets a template for the symbol used in the renderer.
    Syntax
    public CIMSymbolReference SymbolTemplate {get; set;}
    Public Property SymbolTemplate As CIMSymbolReference
    Example
    Create a stream layer with a simple renderer
    var url = @"https://geoeventsample1.esri.com:6443/arcgis/rest/services/LABus/StreamServer";
    var uri = new Uri(url, UriKind.Absolute);
    //Must be on QueuedTask!
    var createParams = new FeatureLayerCreationParams(uri)
    {
      RendererDefinition = new SimpleRendererDefinition()
      {
        SymbolTemplate = SymbolFactory.Instance.ConstructPointSymbol(
                            ColorFactory.Instance.BlueRGB,
                            12,
                     SimpleMarkerStyle.Pushpin).MakeSymbolReference()
      }
    };
    var streamLayer = LayerFactory.Instance.CreateLayer<StreamLayer>(
                        createParams, map);
    
    
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also