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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
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
point
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDPoint to test.
hitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfoHit test information about that point.
includeTolerance
Type: BooleanWhether or not tolerance values should be in hit calculation.
Return Value
Type: Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.