ShapeAccessibleObject.HitTest Method
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)
Syntax
'Declaration
Public Overrides Function HitTest ( _
x As Integer, _
y As Integer _
) As AccessibleObject
public override AccessibleObject HitTest(
int x,
int y
)
public:
virtual AccessibleObject^ HitTest(
int x,
int y
) override
abstract HitTest :
x:int *
y:int -> AccessibleObject
override HitTest :
x:int *
y:int -> AccessibleObject
public override function HitTest(
x : int,
y : int
) : AccessibleObject
Parameters
x
Type: System.Int32X in screen coordinates.
y
Type: System.Int32Y in screen coordinates.
Return Value
Type: System.Windows.Forms.AccessibleObject
Remarks
We override this here since base class's code loops though all children by calling GetChildCount/GetChild(ID) which are very inefficient.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.