Back to Devexpress

SchedulerPrintAdapter.ValidateWorkTime Event

wpf-devexpress-dot-xpf-dot-scheduling-dot-reporting-dot-schedulerprintadapter-fef86c2d.md

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public event WorkTimeValidationEventHandler ValidateWorkTime
vb
Public Event ValidateWorkTime As WorkTimeValidationEventHandler

Event Data

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

PropertyDescription
DateTimeRangeProvides access to a datetime range for which the work-time interval is validated.
ResourceProvides access to a resource for which the work-time interval is validated.
WorkTimeGets or sets the work-time interval to be validated.
WorkTimesGets 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

SchedulerPrintAdapter Class

SchedulerPrintAdapter Members

DevExpress.Xpf.Scheduling.Reporting Namespace