Version

TaskWorkingHourMode for WinGanttView

A TaskWorkingHourMode property has been added to the UltraCalendarInfo object to account for non-working days and non-working hours in the duration of a Task. With the default setting of TaskWorkingHourMode property, the task’s StartDateTime and EndDateTime will not skip non-working hours and non-working days. When set to the ‘AutoAdjust’ enumeration value the task properties automatically adjust and skip non-working hours and non-working days. For example, a task set with ‘AutoAdjust’ that starts on a Friday and has duration of two days would end on Monday rather than on Saturday (assuming that Saturday and Sunday are both designated as non-working days).

The adjustment of end-date time depends upon the unit of time specified for the duration. The SetDuration method of the Task object accepts a TimeSpanFormat parameter that can be used to set the unit of time (days, hours, minutes, weeks). When the Task object’s duration is parsed or formatted the actual amount of working time in a workday is resolved from the TaskDurationWorkingTimePerDay property of the UltraCalendarInfo object.

As part of this feature, a CalendarDateSettings collection object has been added. This object provides options to customize the workday status and working hours for a particular date.