ArcGIS Pro 3.2 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 IReadOnlyList<CIMTinRenderer> GetRenderers()
    Public Function GetRenderers() As IReadOnlyList(Of CIMTinRenderer)

    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
    // 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, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also