Skip to main content

ScaleBreak(String, TimeSpan, TimeSpan) Constructor

Initializes a new instance of the ScaleBreak class with the specified name and time-span edges (suitable for an axis whose scale type is time-span).

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v23.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

Note that for a scale break to be successfully created, it does not matter whether its edge1 value is more or less than its edge2 value. Refer to Scale Breaks for more information.

Note

The edge1 and edge2 parameters should be specified in measurement units appropriate for the axis scale type. In particular, their values should be TimeSpan for a Time-Span axis.

See Also