ArcGIS Pro 3.3 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.

In This Topic
    CanSetRenderer Method (FeatureLayer)
    In This Topic
    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
    Public Function CanSetRenderer( _
       ByVal renderer As CIMRenderer, _
       Optional ByVal featureRendererTarget As FeatureRendererTarget _
    ) As Boolean

    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