Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DayView.WorkTime Property

Gets or sets the work time interval for the Day View, Work-Week View and the Full Week View.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public TimeOfDayInterval WorkTime { get; set; }

#Property Value

Type Description
TimeOfDayInterval

A TimeOfDayInterval value representing the work time interval.

#Remarks

Use this property’s value when the DayView.ShowWorkTimeOnly property is set to true, to limit the data shown in a Day View to the hours in a working day. Note that working hours are painted with a lighter color than non-working hours. This allows end-users to easily distinguish these two periods with the Day View, if both working and non-working hours are visible.

By default working hours are from 9 AM to 6 PM.

Note

If the DayView.ShowWorkTimeOnly option is set to true, and the DayView.WorkTime and DayView.VisibleTime properties are set to different intervals, the Scheduler view displays an interval that is an intersection of the specified intervals.

See Also