Skip to main content
All docs
V26.1
  • GanttView.PointToDateTime(Double) Method

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

    Namespace: DevExpress.Xpf.Gantt

    Assembly: DevExpress.Xpf.Gantt.v26.1.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