Skip to main content
A newer version of this page is available. .

SchedulerPrintAdapter.ValidateWorkTime Event

Occurs when the print adapter retrieves the work time value for use in the report.

Namespace: DevExpress.Xpf.Scheduling.Reporting

Assembly: DevExpress.Xpf.Scheduling.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduling, DevExpress.Wpf.Scheduling

Declaration

public event WorkTimeValidationEventHandler ValidateWorkTime

Event Data

The ValidateWorkTime event's data class is WorkTimeValidationEventArgs. The following properties provide information specific to this event:

Property Description
DateTimeRange Provides access to a datetime range for which the work-time interval is validated.
Resource Provides access to a resource for which the work-time interval is validated.
WorkTime Gets or sets the work-time interval to be validated.
WorkTimes Gets the list of work times specified for a single day.

Remarks

Handle the ValidateWorkTime event to check and modify the work time when the report is being built and the controls are rendered.

This event enables you to set a different work time for different days and resources. Check the WorkTimeValidationEventArgs.Resource and the WorkTimeValidationEventArgs.DateTimeRange, which identify the scope for which the work time is specified, and set the WorkTimeValidationEventArgs.WorkTime as required to accomplish the task.

See Also