Back to Devexpress

GanttView.CalculateFinishDate(DateTime, TimeSpan) Method

wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-dot-calculatefinishdate-x28-system-dot-datetime-system-dot-timespan-x29.md

latest1.6 KB
Original Source

GanttView.CalculateFinishDate(DateTime, TimeSpan) Method

Calculates the time range’s finish date by using its start date and working time duration.

Namespace : DevExpress.Xpf.Gantt

Assembly : DevExpress.Xpf.Gantt.v25.2.dll

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public DateTime CalculateFinishDate(
    DateTime startDate,
    TimeSpan duration
)
vb
Public Function CalculateFinishDate(
    startDate As Date,
    duration As TimeSpan
) As Date

Parameters

NameTypeDescription
startDateDateTime

Start date and time.

| | duration | TimeSpan |

An actual working time duration for a time range that lasts from startDate to finishDate.

|

Returns

TypeDescription
DateTime

End date and time.

|

Remarks

The CalculateFinishDate method calculates the task or strip line finish date considering the nonworking date and time rules.

See Also

GanttView Class

GanttView Members

DevExpress.Xpf.Gantt Namespace