'Declaration Public Function GetDuration( _ ByVal workingHoursOnly As Boolean _ ) As Infragistics.Win.FormattedTimeSpan
public Infragistics.Win.FormattedTimeSpan GetDuration( bool workingHoursOnly )
When the UltraCalendarInfo's TaskWorkingHourMode property is set to 'AutoAdjust', a task's Duration property can return a different value than the difference between the task's starting and ending times. This is because the Duration property removes intervening non-working hours from the amount of time spanned by the task. The GetDuration method provides a way to obtain either the actual time spanned, or the effective duration of the task, depending on the value of the workingHoursOnly parameter.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2