Skip to main content
A newer version of this page is available. .

GanttView.DateTimeToPoint(DateTime) Method

Converts the date-time value to the screen coordinate.

Namespace: DevExpress.Xpf.Gantt

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

Declaration

public double DateTimeToPoint(
    DateTime dateTime
)

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