Skip to main content
A newer version of this page is available. .

GanttView.PointToDateTime(Double) Method

Converts the screen coordinates of a point into a GanttView time range.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Gantt, 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 convertion, use the DateTimeToPoint(DateTime) method.

See Also