C1.Win.4.8 Assembly / C1.Framework.Accessibility Namespace / ElementAccessibleObject Class / HitTest Method

HitTest Method (ElementAccessibleObject)
Retrieves the child object at the specified screen coordinates.
Syntax
'Declaration
 
Public Overrides Function HitTest( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As AccessibleObject
 

Parameters

x
y

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.
Exceptions
ExceptionDescription
The control cannot be hit tested.
See Also