Back to Devexpress

RadarDiagram.DiagramToPoint(DateTime, TimeSpan) Method

corelibraries-devexpress-dot-xtracharts-dot-radardiagram-dot-diagramtopoint-x28-system-dot-datetime-system-dot-timespan-x29.md

latest3.0 KB
Original Source

RadarDiagram.DiagramToPoint(DateTime, TimeSpan) Method

Converts a point’s diagram coordinates into screen coordinates.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Parameters

NameTypeDescription
argumentDateTime

The point’s argument.

| | value | TimeSpan |

The point’s value.

|

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 a point’s diagram coordinates (measured in axis units) to the screen coordinates. 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 RadarDiagram.PointToDiagram method.

With the XY-Diagram type, use the similar XYDiagram2D.PointToDiagram and XYDiagram2D.DiagramToPoint methods.

See Also

CustomPaint

PointToDiagram(Point)

Handling Client-side Scripts

RadarDiagram Class

RadarDiagram Members

DevExpress.XtraCharts Namespace