XYDiagram2D.PointToDiagram(Point) Method
Converts the screen coordinates of a point into an XY-Diagram coordinates object.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
p | Point | A Point object, representing a location on a chart's display area. |
#Returns
Type | Description |
---|---|
Diagram |
A Diagram |
#Remarks
Use the PointToDiagram method, to convert screen coordinates of a point to the diagram coordinates (measured in axis unit).
NOTE
For the opposite conversion (of diagram coordinates to screen coordinates), use the XYDiagram2D.
#Examples
This example demonstrates how to use a PointToDiagram method to transform screen coordinates to diagram coordinates.