Back to Devexpress

XYDiagram2D.DiagramToPoint(String, TimeSpan, AxisX2D, AxisY2D) Method

wpf-devexpress-dot-xpf-dot-charts-dot-xydiagram2d-dot-diagramtopoint-x28-system-dot-string-system-dot-timespan-devexpress-dot-xpf-dot-charts-dot-axisx2d-devexpress-dot-xpf-dot-charts-dot-axisy2d-x29.md

latest2.7 KB
Original Source

XYDiagram2D.DiagramToPoint(String, TimeSpan, AxisX2D, AxisY2D) 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(
    string argument,
    TimeSpan value,
    AxisX2D axisX,
    AxisY2D axisY
)
vb
Public Function DiagramToPoint(
    argument As String,
    value As TimeSpan,
    axisX As AxisX2D,
    axisY As AxisY2D
) As ControlCoordinates

Parameters

NameTypeDescription
argumentString

The point’s argument.

| | value | TimeSpan |

The point’s value.

| | axisX | AxisX2D |

An AxisX2D descendant that specifies the point’s X-axis.

| | axisY | AxisY2D |

An AxisY2D descendant that specifies the point’s Y-axis.

|

Returns

TypeDescription
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

XYDiagram2D Class

XYDiagram2D Members

DevExpress.Xpf.Charts Namespace