This documentation is archived and is not being maintained.

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 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

public virtual void DoHitTest(
	PointD point,
	ShapeElement parentShape,
	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.

Show: