ShapeGeometry::DoHitTest Method (IGeometryHost^, PointD, DiagramHitTestInfo^, Boolean)
Visual Studio 2015
Determines whether a point is inside a shape.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: virtual bool DoHitTest( IGeometryHost^ geometryHost, PointD hitPoint, DiagramHitTestInfo^ hitTestInfo, bool includeTolerance ) abstract
Parameters
- geometryHost
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::IGeometryHost^
The shape or link.
- hitPoint
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::PointD
The point to test, relative to the bounds of the shape.
- hitTestInfo
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::DiagramHitTestInfo^
The object that will receive the results of the hit test.
- includeTolerance
-
Type:
System::Boolean
true to include additional tolerance around the shape geometry when the hit test is performed; otherwise, false. If true, the test will result true even if the point is slightly outside the shape, unless there is a sibling shape directly underneath.
The geometry boundary includes the thickness of the outline pen that lies outside of the graphics path used to draw the geometry.
Show: