All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.1.dll

Declaration

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

Parameters

Name Type Description
startDate DateTime

Start date and time.

duration TimeSpan

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

Returns

Type Description
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