ShapeField.DoHitTest Method
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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
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.PointDThe point.
parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe shape field.
diagramHitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfoThe 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.