FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / HitTest Method / HitTest(Point) Method
System.Drawing.Point in client coordinates.

In This Topic
    HitTest(Point) Method
    In This Topic
    Returns information about the control at a specified point on the control surface.
    Syntax
    'Declaration
     
    
    Public Overloads Function HitTest( _
       ByVal pt As Point _
    ) As HitTestInfo
    public HitTestInfo HitTest( 
       Point pt
    )

    Parameters

    pt
    System.Drawing.Point in client coordinates.

    Return Value

    A HitTestInfo object that contains information about the point.
    Remarks
    This method is especially useful when handling the BeforeMouseDown event. It allows you to determine whether the mouse is over a specific cell, grid buttons, resizing elements, etc.
    See Also