ScaleBreakOptions.Style Property
Gets or sets an appearance of scale break edges.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
ScaleBreakStyle | The scale break edge style. |
Available values:
Name | Description |
---|---|
Straight | The straight style of scale break edges. |
Ragged | The ragged style of scale break edges. |
Waved | The wavy style of scale breaks edges. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to Style |
---|---|
Axis2D |
|
AxisX2D |
|
AxisY2D |
|
SecondaryAxisX2D |
|
SecondaryAxisY2D |
|
Remarks
Use the ScaleBreakStyle enumeration values to specify the Style property. The following table lists all the possible values.
Value | Image |
---|---|
ScaleBreakStyle.Ragged | |
ScaleBreakStyle.Straight | |
ScaleBreakStyle.Waved |
Example
This example shows how to customize the scale break appearance.
To do this, use the following ScaleBreakOptions class properties:
- The ScaleBreakOptions.SizeInPixels property specifies distance between a scale break’s edges.
- The
ScaleBreakOptions.Style
property defines the appearance of the scale break edges. - The ScaleBreakOptions.Brush property sets the a scale break edge color.
- The ScaleBreakOptions.LineStyle property specifies parameters of a line that is used to draw scale break edges.
Note that ScaleBreakOptions define the appearance of both manual and automatic scale breaks.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-manually-insert-scale-breaks-into-an-axis-t553953.
<dxc:AxisY2D.ScaleBreakOptions>
<dxc:ScaleBreakOptions SizeInPixels="15"
Style="Waved"
Brush="Gray">
<dxc:ScaleBreakOptions.LineStyle>
<dxc:LineStyle Thickness="2"/>
</dxc:ScaleBreakOptions.LineStyle>
</dxc:ScaleBreakOptions>
</dxc:AxisY2D.ScaleBreakOptions>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Style 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.