Back to Devexpress

GanttView.PointToDateTime(Double) Method

wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-dot-pointtodatetime-x28-system-dot-double-x29.md

latest1.7 KB
Original Source

GanttView.PointToDateTime(Double) Method

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

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

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

Parameters

NameTypeDescription
pointDouble

A point horizontal coordinate.

|

Returns

TypeDescription
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

DateTimeToPoint(DateTime)

GanttView Class

GanttView Members

DevExpress.Xpf.Gantt Namespace