Diagram::DoHitTest Method (PointD, DiagramHitTestInfo^, Boolean)

 

Performs a hit test on the diagram.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual bool DoHitTest(
	PointD point,
	DiagramHitTestInfo^ hitTestInfo,
	bool includeTolerance
) override

Parameters

point
Type: Microsoft.VisualStudio.Modeling.Diagrams::PointD

The top-left point in the diagram.

hitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramHitTestInfo^

The object that receives the results of the hit test.

includeTolerance
Type: System::Boolean

true to include tolerance around the shape when the hit test determines whether the shape has been hit; otherwise, false. Tolerance increases the hit diameter around the shape.

Return Value

Type: System::Boolean

true if the shape was hit; otherwise, false.

A hit test verifies whether a point is over a shape on the diagram.

Return to top
Show: