Partager via


ShapeGeometry.DoHitTest Method (IGeometryHost, PointD, DiagramHitTestInfo)

Determines whether a point is inside a shape.

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

Syntax

'Déclaration
Public Function DoHitTest ( _
    geometryHost As IGeometryHost, _
    hitPoint As PointD, _
    hitTestInfo As DiagramHitTestInfo _
) As Boolean
public bool DoHitTest(
    IGeometryHost geometryHost,
    PointD hitPoint,
    DiagramHitTestInfo hitTestInfo
)
public:
bool DoHitTest(
    IGeometryHost^ geometryHost, 
    PointD hitPoint, 
    DiagramHitTestInfo^ hitTestInfo
)
member DoHitTest : 
        geometryHost:IGeometryHost * 
        hitPoint:PointD * 
        hitTestInfo:DiagramHitTestInfo -> bool 
public function DoHitTest(
    geometryHost : IGeometryHost, 
    hitPoint : PointD, 
    hitTestInfo : DiagramHitTestInfo
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the point is inside the shape; otherwise, false.

Remarks

The geometry boundary includes the thickness of the outline pen that lies outside of the graphics path used to draw the geometry.

.NET Framework Security

See Also

Reference

ShapeGeometry Class

DoHitTest Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace