ArcGIS Pro 3.3 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 int BreakCount {get; set;}
    Public Property BreakCount As Integer
    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;
    
    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, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also