ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SurfaceLayer Class / GetRenderersAsDictionary Method
Example

In This Topic
    GetRenderersAsDictionary 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 Dictionary<SurfaceRendererTarget,CIMTinRenderer> GetRenderersAsDictionary()
    Public Function GetRenderersAsDictionary() As Dictionary(Of SurfaceRendererTarget,CIMTinRenderer)

    Return Value

    A dictionary 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