2D Chart for WinForms | ComponentOne
C1.Win.C1Chart.4.8 Assembly / C1.Win.C1Chart Namespace / C1Chart Class / ChartRegionFromCoord Method
x coordinate
y coordinate

In This Topic
    ChartRegionFromCoord Method
    In This Topic
    Return the enumerated value indicating the topmost displayed region at the specified coordinates.
    Syntax
    'Declaration
     
    Public Function ChartRegionFromCoord( _
       ByVal XCoord As System.Integer, _
       ByVal YCoord As System.Integer _
    ) As ChartRegionEnum
    public ChartRegionEnum ChartRegionFromCoord( 
       System.int XCoord,
       System.int YCoord
    )

    Parameters

    XCoord
    x coordinate
    YCoord
    y coordinate

    Return Value

    Chart region
    Remarks
    Each chart element drawn on the face of the control, including the Chart itself, the Header, the Footer, the Legend, the ChartArea and the PlotArea form a region which is identified by the enumerated value returned by this method. The region under the mouse cursor can be identified by passing the mouse coordinates to this method.
    See Also