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

ScaleBreakOptions.Style Property

Gets or sets a style in which scale breaks‘ edges are drawn.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.2.dll

NuGet Package: DevExpress.Charts

Declaration

public ScaleBreakStyle Style { get; set; }

Property Value

Type Description
ScaleBreakStyle

A ScaleBreakStyle object, which represents the scale break edge style.

Available values:

Name Description
Straight

Indentifies the straight style of scale breaks edges.

ScaleBreakStyle_straight

Ragged

Indentifies the ragged style of scale breaks edges.

ScaleBreakStyle_ragged

Waved

Indentifies the wavy style of scale breaks edges.

ScaleBreakStyle_waved

Property Paths

You can access this nested property as listed below:

Object Type Path to Style
Axis

Remarks

Note that the Style property simultaneously affects all the scale breaks available for an axis (both automatic and manual).

In addition, to adjust scale breaks appearance, you can use the following properties: ScaleBreakOptions.SizeInPixels and ScaleBreakOptions.Color.

For more information, refer to Scale Breaks.

Example

This example demonstrates how scale breaks can be created within an axis, and customized at runtime.

// Cast your diagram object to an appropriate diagram type,
// to access its axes.
XYDiagram diagram = (XYDiagram)chartControl1.Diagram;

// Add scale breaks to the Y-axis collection, 
// with their Edge1 and Edge2 properties defined in the constructor.
diagram.AxisY.ScaleBreaks.Add(new ScaleBreak("Scale Break 1", 10, 100));
diagram.AxisY.ScaleBreaks.Add(new ScaleBreak("Scale Break 2", 110, 2000));

// Define the scale breaks' options.
diagram.AxisY.ScaleBreakOptions.Style = ScaleBreakStyle.Ragged;
diagram.AxisY.ScaleBreakOptions.SizeInPixels = 20;
diagram.AxisY.ScaleBreakOptions.Color = Color.Turquoise;
See Also