Back to Devexpress

AutoScaleBreaks.MaxCount Property

wpf-devexpress-dot-xpf-dot-charts-dot-autoscalebreaks-ac2b6f63.md

latest2.0 KB
Original Source

AutoScaleBreaks.MaxCount Property

Gets or sets the maximum number of auto-generated scale breaks.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public int MaxCount { get; set; }
vb
Public Property MaxCount As Integer

Property Value

TypeDescription
Int32

The maximum number of automatic scale breaks. The default value is 4.

|

Remarks

Use the MaxCount property to specify the maximum possible number of automatic scale breaks allowed when the AutoScaleBreaks.Enabled property is set to true.

The Axis2D.ScaleBreaks property provides access to the manually added scale break collection.

Example

This example shows how to automatically generate scale breaks for an axis.

To do this, set the AutoScaleBreaks.Enabled property to true. Limit the maximum possible number of auto-created scale breaks using the AutoScaleBreaks.MaxCount property.

xaml
<dxc:XYDiagram2D.AxisY>
    <dxc:AxisY2D>
        <dxc:AxisY2D.AutoScaleBreaks>
            <dxc:AutoScaleBreaks Enabled="True" 
                                 MaxCount="3"/>
        </dxc:AxisY2D.AutoScaleBreaks>
    </dxc:AxisY2D>
</dxc:XYDiagram2D.AxisY>

See Also

AutoScaleBreaks Class

AutoScaleBreaks Members

DevExpress.Xpf.Charts Namespace