2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / ChartGroup Class / CoordToDataCoord Method / CoordToDataCoord(Int32,Int32,Single,Single) Method
X coordinate.
Y coordinate.
X data coordinate.
Y data coordinate.

In This Topic
    CoordToDataCoord(Int32,Int32,Single,Single) Method
    In This Topic
    Calculates the data coordinates of a point in the PlotArea given chart client coordinates.
    Syntax
    'Declaration
     
    Public Overloads Function CoordToDataCoord( _
       ByVal XCoord As System.Integer, _
       ByVal YCoord As System.Integer, _
       ByRef XDataCoord As System.Single, _
       ByRef YDataCoord As System.Single _
    ) As System.Boolean
    public System.bool CoordToDataCoord( 
       System.int XCoord,
       System.int YCoord,
       ref System.float XDataCoord,
       ref System.float YDataCoord
    )

    Parameters

    XCoord
    X coordinate.
    YCoord
    Y coordinate.
    XDataCoord
    X data coordinate.
    YDataCoord
    Y data coordinate.

    Return Value

    The return value indicates successful calculation.
    Remarks
    Mouse coordinates are given in client coordinates.
    See Also