All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

XYDiagram2D.DiagramToPoint(DateTime, TimeSpan) Method

Converts a point's diagram coordinates into screen coordinates.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public ControlCoordinates DiagramToPoint(
    DateTime argument,
    TimeSpan value
)
Public Function DiagramToPoint(
    argument As Date,
    value As TimeSpan
) As ControlCoordinates

Parameters

Name Type Description
argument DateTime

The point's argument.

value TimeSpan

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 a point's diagram coordinates (measured in axis units) to the screen coordinates (from the top-left window corner in pixels). For example, calling this method in the ChartControl.CustomPaint event handler allows you to obtain screen coordinates of series points, and draw custom graphics onto your chart across them.

NOTE

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

With the Radar and Polar diagram types, use the similar RadarDiagram.PointToDiagram and RadarDiagram.DiagramToPoint methods.

See Also