ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TinColorRampRendererDefinition Class / BreakCount Property
Example

In This Topic
    BreakCount Property (TinColorRampRendererDefinition)
    In This Topic
    Gets or sets the number of desired class breaks. The default value is 9.
    Syntax
    Public Property BreakCount As Integer
    public int BreakCount {get; set;}
    Remarks
    This property does not apply when the classification method is StandardDeviation or DefinedInterval. In those cases use StandardDeviationInterval or IntervalSize appropriately to define the class breaks.
    Example
    Elevation Node Renderer - Equal Breaks
    {
      // applies to TIN layers only
      var equalBreaksNodeRendererDef = new TinNodeClassBreaksRendererDefinition();
      equalBreaksNodeRendererDef.BreakCount = 7;
      // Note: Needs QueuedTask to run
      {
        if (tinLayer.CanCreateRenderer(equalBreaksNodeRendererDef))
        {
          CIMTinRenderer renderer = tinLayer.CreateRenderer(equalBreaksNodeRendererDef);
          if (tinLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Edges))
            tinLayer.SetRenderer(renderer, SurfaceRendererTarget.Edges);
        }
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.2 or higher.
    See Also