GanttView.DateTimeToPoint(DateTime) Method

Converts the date-time value to the screen coordinate.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

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

Parameters

Name Type Description
dateTime DateTime

The date-time value to convert.

Returns

Type Description
Double

A screen 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 convertion, use the PointToDateTime(Double) method.

See Also