ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureLayer Class / CanCreateRenderer Method
A renderer definition object.
Version

    CanCreateRenderer Method
    Determines whether a renderer can be created and is valid for the feature layer using the specified RendererDefinition. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public bool CanCreateRenderer( 
       RendererDefinition rendererDefinition
    )

    Parameters

    rendererDefinition
    A renderer definition object.

    Return Value

    A boolean indicates that a renderer can be created 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.0 or higher.
    See Also