ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SurfaceLayer Class / GetRenderers Method
Example

In This Topic
    GetRenderers Method
    In This Topic
    Gets the set of renderers used to draw the surface layer. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function GetRenderers() As IReadOnlyList(Of CIMTinRenderer)
    public IReadOnlyList<CIMTinRenderer> GetRenderers()

    Return Value

    A ReadOnlyList of CIMTinRenderer.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Get Renderers
    {
      // Note: Needs QueuedTask to run
      {
        // get the list of renderers
        IReadOnlyList<CIMTinRenderer> renderers = surfaceLayer.GetRenderers();
    
        // get the renderers as a dictionary
        Dictionary<SurfaceRendererTarget, CIMTinRenderer> dict = surfaceLayer.GetRenderersAsDictionary();
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also