Input for WinForms | ComponentOne
C1.Framework.Accessibility Namespace / DropDownAccessibleObject Class / HitTest Method
The horizontal screen coordinate.
The vertical screen coordinate.

In This Topic
    HitTest Method (DropDownAccessibleObject)
    In This Topic
    Retrieves the child object at the specified screen coordinates.
    Syntax
    'Declaration
     
    
    Public Overridable Function HitTest( _
       ByVal x As Integer, _
       ByVal y As Integer _
    ) As AccessibleObject
    public virtual AccessibleObject HitTest( 
       int x,
       int y
    )

    Parameters

    x
    The horizontal screen coordinate.
    y
    The vertical screen coordinate.

    Return Value

    An System.Windows.Forms.AccessibleObject that represents the child object at the given screen coordinates. This method returns the calling object if the object itself is at the location specified. Returns a null reference (Nothing in Visual Basic) if no object is at the tested location.
    See Also