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.1.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.