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

GetRenderers Method
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()

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