XYDiagram2D.DiagramToPoint(DateTime, DateTime, AxisX2D, AxisY2D, Pane) Method
Converts the diagram coordinates of a point into screen coordinates.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
public ControlCoordinates DiagramToPoint(
DateTime argument,
DateTime value,
AxisX2D axisX,
AxisY2D axisY,
Pane pane
)
#Parameters
Name | Type | Description |
---|---|---|
argument | Date |
A Date |
value | Date |
A Date |
axis |
Axis |
An Axis |
axis |
Axis |
An Axis |
pane | Pane | A Pane descendant, specifying the point's pane. |
#Returns
Type | Description |
---|---|
Control |
A Control |
#Remarks
Use the DiagramToPoint method to convert diagram coordinates of a point (measured in axis units) to the screen coordinates.
NOTE
For the opposite conversion (of screen coordinates to diagram coordinates), use the XYDiagram2D.
#Examples
This example demonstrates how to use a DiagramToPoint method to transform chart coordinates to screen coordinates.