Skip to main content

DateTimeScaleOptionsBase.WorkdaysOnly Property

Specifies whether holidays and non-working days should be excluded from the axis scale.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public bool WorkdaysOnly { get; set; }

Property Value

Type Description
Boolean

true, to exclude non-working days from the axis scale; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to WorkdaysOnly
ArgumentAxis3D
.DateTimeScaleOptions .WorkdaysOnly
AxisX2D
.DateTimeScaleOptions .WorkdaysOnly
AxisX3D
.DateTimeScaleOptions .WorkdaysOnly
RadarAxisX2D
.DateTimeScaleOptions .WorkdaysOnly

Remarks

The WorkdaysOnly property is available for an axis if its scale type is date-time.

Property values Resulting image
WorkdaysOnly = false WorkdaysOnly_false
WorkdaysOnly = true WorkdaysOnly_true

After the WorkdaysOnly property is enabled, the DateTimeScaleOptionsBase.WorkdaysOptions allow you to specify non-working days, holidays and strict workdays for the axis scale.

For more information, refer to Work Time and Workday Configuration.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WorkdaysOnly 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.

See Also