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

XYDiagram2D.DiagramToPoint(TimeSpan, Double) Method

Converts the diagram coordinates of a point into screen coordinates.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public ControlCoordinates DiagramToPoint(
    TimeSpan argument,
    double value
)

#Parameters

Name Type Description
argument TimeSpan

The point’s argument.

value Double

The point’s value.

#Returns

Type Description
ControlCoordinates

A ControlCoordinates object that contains information about the point’s screen coordinates and its associated pane.

#Remarks

Use the DiagramToPoint method to convert diagram coordinates of a point (measured in axis units) to the screen coordinates.

Screen coordinates are calculated starting from the top-left window corner and measured in pixels. Diagram coordinates are calculated from the bottom-left corner and measured in axis measurement units.

Note

For the opposite conversion (from screen coordinates to diagram coordinates), use the XYDiagram2D.PointToDiagram method.

See Also