Skip to main content

ScaleBreak(String, TimeSpan, TimeSpan) Constructor

Initializes a new instance of the ScaleBreak class with the specified name and edge values (suitable for an axis with the TimeSpan scale type).

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v25.2.dll

NuGet Package: DevExpress.Charts

Declaration

public ScaleBreak(
    string name,
    TimeSpan edge1,
    TimeSpan edge2
)

Parameters

Name Type Description
name String

A String that specifies the scale break name. This value is assigned to the ChartElementNamed.Name property.

edge1 TimeSpan

A TimeSpan value that specifies the time-span value on the axis and corresponds to the scale break’s first edge.

edge2 TimeSpan

A TimeSpan value that specifies the time-span value along the axis and corresponds to the scale break’s second edge.

Remarks

A scale break is created regardless of whether its edge1 value is greater or smaller than its edge2 value. Refer to the following help topic for more information: Scale Breaks.

Note

edge1 and edge2 parameters should be specified in measurement units appropriate for the axis scale type. Use TimeSpan objects for a TimeSpan axis.

See Also