ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SurfaceLayer Class / RemoveRenderer Method
A SurfaceRendererTarget indicating the usage of the renderer.
Example

In This Topic
    RemoveRenderer Method
    In This Topic
    Removes a surface layer's renderer that applies to the specified target. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void RemoveRenderer( 
       SurfaceRendererTarget surfaceRendererTarget
    )
    Public Sub RemoveRenderer( _
       ByVal surfaceRendererTarget As SurfaceRendererTarget _
    ) 

    Parameters

    surfaceRendererTarget
    A SurfaceRendererTarget indicating the usage of the renderer.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Remove an edge renderer
    var layer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<SurfaceLayer>().FirstOrDefault();
    if (layer == null)
      return;
    
    QueuedTask.Run(() =>
    {
      layer.RemoveRenderer(SurfaceRendererTarget.Edges);
    });
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also