ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMGeoFeatureLayerBase Class / ScaleSymbols Property

In This Topic
    ScaleSymbols Property (CIMGeoFeatureLayerBase)
    In This Topic
    Gets or sets a value indicating whether to scale the symbols in this layer based on the map's reference scale.
    public bool ScaleSymbols {get; set;}
    Public Property ScaleSymbols As Boolean
    Toggle "Scale layer symbols when reference scale is set"
    var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
    ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
      // get the CIM layer definition
      var cimFeatureLayer = featureLayer.GetDefinition() as ArcGIS.Core.CIM.CIMFeatureLayer;
      // turn on the option to scale the symbols in this layer based in the map's reference scale
      cimFeatureLayer.ScaleSymbols = true;

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also