Back to Devexpress

GanttView.DateTimeToPoint(DateTime) Method

wpf-devexpress-dot-xpf-dot-gantt-dot-ganttview-dot-datetimetopoint-x28-system-dot-datetime-x29.md

latest1.7 KB
Original Source

GanttView.DateTimeToPoint(DateTime) Method

Converts the date-time value to a window coordinate.

Namespace : DevExpress.Xpf.Gantt

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

NuGet Package : DevExpress.Wpf.Gantt

Declaration

csharp
public double DateTimeToPoint(
    DateTime dateTime
)
vb
Public Function DateTimeToPoint(
    dateTime As Date
) As Double

Parameters

NameTypeDescription
dateTimeDateTime

The date-time value to convert.

|

Returns

TypeDescription
Double

A window horizontal coordinate that corresponds to the date-time value.

|

Remarks

When the converted date-time value belongs to a collapsed time interval, the DateTimeToPoint returns the coordinate of the first point that belongs to the following working time.

For the opposite conversion, use the PointToDateTime(Double) method.

See Also

PointToDateTime(Double)

GanttView Class

GanttView Members

DevExpress.Xpf.Gantt Namespace