DXSchedulerPrintAdapter.ValidateWorkTime Event

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

Namespace: DevExpress.Xpf.Scheduler.Reporting

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public event WorkTimeValidationEventHandler ValidateWorkTime
Public Event ValidateWorkTime As WorkTimeValidationEventHandler

Event Data

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

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

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

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. To accomplish this, check the WorkTimeValidationEventArgs.Resource and WorkTimeValidationEventArgs.TimeInterval properties, which identify the scope for which the work time is specified, and set the WorkTimeValidationEventArgs.WorkTime as required.

See Also