Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttView.PointToDateTime(Double) Method

Converts the window coordinate of a point into a GanttView time range.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public DateTimeRange PointToDateTime(
    double point
)

#Parameters

Name Type Description
point Double

A point horizontal coordinate.

#Returns

Type Description
DateTimeRange

A date-time range that corresponds to the point.

#Remarks

When the converted point is the coordinate of the first point that belongs to the working time, the PointToDateTime method returns the date-time range of the previous collapsed non-working time.

For the opposite conversion, use the DateTimeToPoint(DateTime) method.

See Also