Diagram.DoHitTest Method (PointD, DiagramHitTestInfo, Boolean)

Performs a hit test on the diagram.

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

Syntax

'Declaration
Public Overrides Function DoHitTest ( _
    point As PointD, _
    hitTestInfo As DiagramHitTestInfo, _
    includeTolerance As Boolean _
) As Boolean
'Usage
Dim instance As Diagram 
Dim point As PointD 
Dim hitTestInfo As DiagramHitTestInfo 
Dim includeTolerance As Boolean 
Dim returnValue As Boolean 

returnValue = instance.DoHitTest(point, _
    hitTestInfo, includeTolerance)
public override bool DoHitTest(
    PointD point,
    DiagramHitTestInfo hitTestInfo,
    bool includeTolerance
)
public:
virtual bool DoHitTest(
    PointD point, 
    DiagramHitTestInfo^ hitTestInfo, 
    bool includeTolerance
) override
public override function DoHitTest(
    point : PointD, 
    hitTestInfo : DiagramHitTestInfo, 
    includeTolerance : boolean
) : boolean

Parameters

  • 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.

Remarks

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

.NET Framework Security

See Also

Reference

Diagram Class

Diagram Members

DoHitTest Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace