ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureLayer Class / CanSetRenderer Method
Your custom renderer that will be used to draw features of the feature layer.
A FeatureRendererTarget indicating the intended usage of the resulting renderer.
Version

CanSetRenderer Method (FeatureLayer)
Determines whether a renderer is valid for the feature layer and can be updated. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

renderer
Your custom renderer that will be used to draw features of the feature layer.
featureRendererTarget
A FeatureRendererTarget indicating the intended usage of the resulting renderer.

Return Value

A boolean indicates that a renderer can be updated for the layer.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
Certain renderers are only appropriate for certain layer types or for layers of a certain geometry type. For example a Dot Density Renderer can only be applied to a polygon layer, a Heat Map Renderer can only be applied to a point layer.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also