다음을 통해 공유


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

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

See Also

Reference

ShapeAccessibleObject Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace