Skip to main content
A newer version of this page is available. .

AutoScaleBreaks.MaxCount Property

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

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.1.dll

Declaration

public int MaxCount { get; set; }

Property Value

Type Description
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.

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MaxCount property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also