Skip to main content

DayView.WorkTime Property

Gets or sets the working time interval for a Day or Work-Week view.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

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

#Property Value

Type Description
TimeOfDayInterval

A DevExpress.XtraScheduler.TimeOfDayInterval value that specifies the working time interval.

#Remarks

Use the WorkTime property to specify working time for the Day or Work-Week view. Note that working hours are painted with a lighter color than non-working hours. This allows end-users to easily distinguish these two periods within the Day or Work-Week view, if both working and non-working hours are visible.

Set the DayView.ShowWorkTimeOnly property to true, to show working time only.

#Examples

This example demonstrates how to customize the Day View within the SchedulerControl. To do this, it is necessary to modify the DayView object accessed via the SchedulerControl.DayView property.

See Also