Back to Devexpress

XYDiagram2D.DiagramToPoint(Double, DateTime, AxisX2D, AxisY2D, Pane) Method

wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-dot-diagramtopoint-x28-system-dot-double-system-dot-datetime-devexpress-dot-xpf-dot-charts-dot-axisx2d-devexpress-dot-xpf-dot-charts-dot-axisy2d-devexpress-dot-xpf-dot-charts-dot-pane-x29.md

latest3.2 KB
Original Source

XYDiagram2D.DiagramToPoint(Double, DateTime, AxisX2D, AxisY2D, Pane) Method

Converts the diagram coordinates of a point into screen coordinates.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public ControlCoordinates DiagramToPoint(
    double argument,
    DateTime value,
    AxisX2D axisX,
    AxisY2D axisY,
    Pane pane
)
vb
Public Function DiagramToPoint(
    argument As Double,
    value As Date,
    axisX As AxisX2D,
    axisY As AxisY2D,
    pane As Pane
) As ControlCoordinates

Parameters

NameTypeDescription
argumentDouble

A Double value, specifying the point’s argument.

| | value | DateTime |

A DateTime value, specifying the point’s value.

| | axisX | AxisX2D |

An AxisX2D descendant, specifying the point’s X-axis.

| | axisY | AxisY2D |

An AxisY2D descendant, specifying the point’s Y-axis.

| | pane | Pane |

A Pane descendant, specifying the point’s pane.

|

Returns

TypeDescription
ControlCoordinates

A ControlCoordinates object, containing 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.

Note

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

Example

This example demonstrates how to use a DiagramToPoint method to transform chart coordinates to screen coordinates.

csharp
ControlCoordinates controlCoordinates = diagram.DiagramToPoint(diagramCoordinates.DateTimeArgument, seriesValue);

See Also

XYDiagram2D Class

XYDiagram2D Members

DevExpress.Xpf.Charts Namespace