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.v18.1.dll
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the WorkTime 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.