ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.5.2 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid 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 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.
    See Also