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

Declaration

public DateTimeRange PointToDateTime(
    double point
)
Public Function PointToDateTime(
    point As Double
) As DateTimeRange

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