Partilhar via


ElementListCompartment.DoHitTest(PointD, DiagramHitTestInfo, Boolean) Method

Definition

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

public:
 override bool DoHitTest(Microsoft::VisualStudio::Modeling::Diagrams::PointD point, Microsoft::VisualStudio::Modeling::Diagrams::DiagramHitTestInfo ^ hitTestInfo, bool includeTolerance);
public override bool DoHitTest (Microsoft.VisualStudio.Modeling.Diagrams.PointD point, Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo hitTestInfo, bool includeTolerance);
override this.DoHitTest : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo * bool -> bool
Public Overrides Function DoHitTest (point As PointD, hitTestInfo As DiagramHitTestInfo, includeTolerance As Boolean) As Boolean

Parameters

point
PointD

Point to test.

hitTestInfo
DiagramHitTestInfo

Hit test information about that point.

includeTolerance
Boolean

Whether or not tolerance values should be in hit calculation.

Returns

Whether or not this item was hit.

Applies to