ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TinFaceClassBreaksRendererDefinition Class / TinFaceClassBreaksRendererDefinition Constructor / TinFaceClassBreaksRendererDefinition Constructor(TerrainDrawCursorType,ClassificationMethod,Int32,CIMSymbolReference,CIMColorRamp)
The cursor type.
(Optional) Classification method. (Default value = ArcGIS.Core.CIM.ClassificationMethod.EqualInterval)
(Optional) Number of breaks. (Default value = 9)
(Optional) Symbol template for the classes.
(Optional) Color ramp to apply to those classes.
Example

In This Topic
    TinFaceClassBreaksRendererDefinition Constructor(TerrainDrawCursorType,ClassificationMethod,Int32,CIMSymbolReference,CIMColorRamp)
    In This Topic
    Create a class breaks renderer definition to draw faces in a surface layer.
    Syntax

    Parameters

    cursorType
    The cursor type.
    classificationMethod
    (Optional) Classification method. (Default value = ArcGIS.Core.CIM.ClassificationMethod.EqualInterval)
    breakCount
    (Optional) Number of breaks. (Default value = 9)
    symbolTemplate
    (Optional) Symbol template for the classes.
    colorRamp
    (Optional) Color ramp to apply to those classes.
    Remarks
    Only the following values for cursorType are valid for this renderer - ArcGIS.Core.CIM.TerrainDrawCursorType.FaceElevation, or ArcGIS.Core.CIM.TerrainDrawCursorType.FaceSlope. Use the TinFaceClassBreaksAspectRendererDefinition to create a class breaks renderer with a cursorType of ArcGIS.Core.CIM.TerrainDrawCursorType.FaceAspect.
    Example
    Slope Face Renderer - Equal Interval
    {
      var slopeFaceClassBreaksEqual = new TinFaceClassBreaksRendererDefinition(TerrainDrawCursorType.FaceSlope);
      // accept default breakCount, symbolTemplate, color ramp
      // Note: Needs QueuedTask to run
      {
        if (surfaceLayer.CanCreateRenderer(slopeFaceClassBreaksEqual))
        {
          CIMTinRenderer renderer = surfaceLayer.CreateRenderer(slopeFaceClassBreaksEqual);
          if (surfaceLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Surface))
            surfaceLayer.SetRenderer(renderer, SurfaceRendererTarget.Surface);
        }
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.2 or higher.
    See Also