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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
‘선언
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.Int32
X in screen coordinates.
- y
Type: System.Int32
Y 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.