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

In This Topic
    CanCreateRenderer Method (FeatureLayer)
    In This Topic
    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.
    public bool CanCreateRenderer( 
       RendererDefinition rendererDefinition
    Public Function CanCreateRenderer( _
       ByVal rendererDefinition As RendererDefinition _
    ) As Boolean


    A renderer definition object.

    Return Value

    A boolean indicates that a renderer can be created for the layer.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    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.

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also