ShapeAccessibleObject::HitTest Method (Int32, Int32)

 

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

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual AccessibleObject^ HitTest(
	int x,
	int y
) override

Parameters

x
Type: System::Int32

X in screen coordinates.

y
Type: System::Int32

Y in screen coordinates.

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

Return to top
Show: