Performs a hit test on a specified point in the diagram to determine whether the point is in the bounds of the shape field.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Overridable Sub DoHitTest ( _
    point As PointD, _
    parentShape As ShapeElement, _
    diagramHitTestInfo As DiagramHitTestInfo _
)
public virtual void DoHitTest(
    PointD point,
    ShapeElement parentShape,
    DiagramHitTestInfo diagramHitTestInfo
)
public:
virtual void DoHitTest(
    PointD point, 
    ShapeElement^ parentShape, 
    DiagramHitTestInfo^ diagramHitTestInfo
)
abstract DoHitTest : 
        point:PointD * 
        parentShape:ShapeElement * 
        diagramHitTestInfo:DiagramHitTestInfo -> unit 
override DoHitTest : 
        point:PointD * 
        parentShape:ShapeElement * 
        diagramHitTestInfo:DiagramHitTestInfo -> unit 
public function DoHitTest(
    point : PointD, 
    parentShape : ShapeElement, 
    diagramHitTestInfo : DiagramHitTestInfo
)
Parameters
- point
 Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
 The point.
- parentShape
 Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
 The shape field.
- diagramHitTestInfo
 Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo
 The hit test information that will be updated with the hit test results.
.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.