ScaleBreakOptions.SizeInPixels Property

Gets or sets the scale break size.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public int SizeInPixels { get; set; }
Public Property SizeInPixels As Integer

Property Value

Type Description
Int32

The distance between scale break edges, in pixels.

Property Paths

You can access this nested property as listed below:

Object Type Path to SizeInPixels
Axis2D
.ScaleBreakOptions.SizeInPixels
AxisX2D
.ScaleBreakOptions.SizeInPixels
AxisY2D
.ScaleBreakOptions.SizeInPixels
SecondaryAxisX2D
.ScaleBreakOptions.SizeInPixels
SecondaryAxisY2D
.ScaleBreakOptions.SizeInPixels

Remarks

The SizeInPixels property affects all the scale breaks available for an axis (both automatic and manual).

When the SizeInPixels property is specified to a value is equal or less than -1, the scale break edges overlap each other, and a zero value means that their edges contact.

Examples

This example shows how to customize the scale break appearance.

To do this, use the following ScaleBreakOptions class properties:

Note that ScaleBreakOptions define the appearance of both manual and automatic scale breaks.

<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>
See Also