ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TerrainPointClassBreaksRendererDefinition Class
Members Example

In This Topic
    TerrainPointClassBreaksRendererDefinition Class
    In This Topic
    Represents a class breaks renderer definition to draw terrain points in a Terrain layer.
    Object Model
    TerrainPointClassBreaksRendererDefinition ClassCIMColorRamp ClassCIMSymbolReference Class
    Syntax
    public class TerrainPointClassBreaksRendererDefinition : TinColorRampRendererDefinition 
    Public Class TerrainPointClassBreaksRendererDefinition 
       Inherits TinColorRampRendererDefinition
    Remarks
    A TerrainPointClassBreaksRendererDefinition has a fixed CursorType of ArcGIS.Core.CIM.TerrainDrawCursorType.TerrainPointElevation and is only applicable to Terrain layers.

    Once you define a class breaks renderer, you can call a surface layer's CanCreateRenderer, CreateRenderer, CanSetRenderer and SetRenderer methods to create and assign a renderer to a surface layer.

    Example
    Terrain Point Class Breaks Renderer
    // applies to Terrain layers only
    
    var terrainPointClassBreaks = new TerrainPointClassBreaksRendererDefinition();
    // accept defaults
    
    if (terrainLayer.CanCreateRenderer(terrainPointClassBreaks))
    {
      CIMTinRenderer renderer = terrainLayer.CreateRenderer(terrainPointClassBreaks);
      if (terrainLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Points))
        terrainLayer.SetRenderer(renderer, SurfaceRendererTarget.Points);
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.LayerDrawingDefinition
          ArcGIS.Desktop.Mapping.TinRendererDefinition
             ArcGIS.Desktop.Mapping.TinColorRampRendererDefinition
                ArcGIS.Desktop.Mapping.TerrainPointClassBreaksRendererDefinition

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also