ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.5.2 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / HitTest Method / HitTest(Int32,Int32) Method
The horizontal position of the client coordinate.
The vertical position of the client coordinate.

In This Topic
    HitTest(Int32,Int32) Method
    In This Topic
    Returns information about the control at a specified point on the control surface.
    Syntax
    'Declaration
     
    Public Overloads Function HitTest( _
       ByVal x As Integer, _
       ByVal y As Integer _
    ) As HitTestInfo
    public HitTestInfo HitTest( 
       int x,
       int y
    )

    Parameters

    x
    The horizontal position of the client coordinate.
    y
    The vertical position of the client coordinate.

    Return Value

    A C1.Win.C1FlexGrid.HitTestInfo object that contains information about the point.
    Remarks
    This method is especially useful when handling the C1.Win.C1FlexGrid.C1FlexGridBase.BeforeMouseDown event. It allows you to determine whether the mouse is over a specific cell, grid buttons, resizing elements, etc.
    Example
    The code below shows hit test information whenever the user clicks the mouse:
    See Also