Partager via


ElementListCompartment.DoHitTest Method (PointD, DiagramHitTestInfo, Boolean)

Overrides the DoHitTest method, so that list items are not hit detectable when zoomed out too far.

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 Overrides Function DoHitTest ( _
    point As PointD, _
    hitTestInfo As DiagramHitTestInfo, _
    includeTolerance As Boolean _
) As Boolean
public override bool DoHitTest(
    PointD point,
    DiagramHitTestInfo hitTestInfo,
    bool includeTolerance
)
public:
virtual bool DoHitTest(
    PointD point, 
    DiagramHitTestInfo^ hitTestInfo, 
    bool includeTolerance
) override
abstract DoHitTest : 
        point:PointD * 
        hitTestInfo:DiagramHitTestInfo * 
        includeTolerance:bool -> bool 
override DoHitTest : 
        point:PointD * 
        hitTestInfo:DiagramHitTestInfo * 
        includeTolerance:bool -> bool 
public override function DoHitTest(
    point : PointD, 
    hitTestInfo : DiagramHitTestInfo, 
    includeTolerance : boolean
) : boolean

Parameters

  • includeTolerance
    Type: System.Boolean
    Whether or not tolerance values should be in hit calculation.

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ElementListCompartment Class

DoHitTest Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace