windowsforms-devexpress-dot-xtrascheduler-dot-dayview-ca25cbff.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Scheduler
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public TimeOfDayInterval WorkTime { get; set; }
<XtraSerializableProperty(XtraSerializationVisibility.Content)>
Public Property WorkTime As TimeOfDayInterval
| Type | Description |
|---|---|
| TimeOfDayInterval |
A TimeOfDayInterval value representing the work time interval.
|
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