Partilhar via


ShapeAccessibleObject.HitTest(Int32, Int32) Method

Definition

Performs hit-test of the shape at specified screen coordinates and returns MSAA object for the hit child.

public:
 override System::Windows::Forms::AccessibleObject ^ HitTest(int x, int y);
public override System.Windows.Forms.AccessibleObject HitTest (int x, int y);
override this.HitTest : int * int -> System.Windows.Forms.AccessibleObject
Public Overrides Function HitTest (x As Integer, y As Integer) As AccessibleObject

Parameters

x
Int32

X in screen coordinates.

y
Int32

Y in screen coordinates.

Returns

Hit child MSAA object or self if not child is hit.

Remarks

We override this here since base class's code loops though all children by calling GetChildCount/GetChild(ID) which are very inefficient.

Applies to