ComponentOne 3D Chart for WinForms
C1.Win.C1Chart3D.4.5.2 Assembly / C1.Win.C1Chart3D Namespace / Chart3DData Class / CoordToDataIndex Method
Client x coordinate in pixels.
Client y coordinate in pixels.
Column index(Series index for point data layout).
Row index(Point index for point data layout).

In This Topic
    CoordToDataIndex Method
    In This Topic
    Picks the displayed data closest to the given pixel coordinate.
    Syntax
    'Declaration
     
    Public Function CoordToDataIndex( _
       ByVal sx As System.Integer, _
       ByVal sy As System.Integer, _
       ByRef columnIndex As System.Integer, _
       ByRef rowIndex As System.Integer _
    ) As System.Boolean
    public System.bool CoordToDataIndex( 
       System.int sx,
       System.int sy,
       ref System.int columnIndex,
       ref System.int rowIndex
    )

    Parameters

    sx
    Client x coordinate in pixels.
    sy
    Client y coordinate in pixels.
    columnIndex
    Column index(Series index for point data layout).
    rowIndex
    Row index(Point index for point data layout).

    Return Value

    Boolean result of coordinate conversion.
    Remarks
    For point data layout the column parameter relates to series index and the row parameter relates to point index.
    See Also