Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GanttView.DateTimeToPoint(DateTime) Method

Converts the date-time value to a window coordinate.

Namespace: DevExpress.Xpf.Gantt

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

NuGet Package: DevExpress.Wpf.Gantt

#Declaration

public double DateTimeToPoint(
    DateTime dateTime
)

#Parameters

Name Type Description
dateTime DateTime

The date-time value to convert.

#Returns

Type Description
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