Compartir a través de


Diagram.DoHitTest Method

Definition

Overloads

DoHitTest(DiagramClientView, PointD, List<ShapeElement>, Boolean)

Performs a hit test and returns the information in the shapesHit argument.

DoHitTest(PointD, DiagramHitTestInfo, Boolean)

Performs a hit test and returns the information in the DiagramHitTestInfo argument. The Diagram itself is considered a ShapeElement and will be returned if hit.

DoHitTest(DiagramClientView, PointD, List<ShapeElement>, Boolean)

Performs a hit test and returns the information in the shapesHit argument.

public:
 virtual bool DoHitTest(Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, Microsoft::VisualStudio::Modeling::Diagrams::PointD point, System::Collections::Generic::List<Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^> ^ shapesHit, bool includeTolerance);
public virtual bool DoHitTest (Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, Microsoft.VisualStudio.Modeling.Diagrams.PointD point, System.Collections.Generic.List<Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement> shapesHit, bool includeTolerance);
override this.DoHitTest : Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * Microsoft.VisualStudio.Modeling.Diagrams.PointD * System.Collections.Generic.List<Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement> * bool -> bool
Public Overridable Function DoHitTest (view As DiagramClientView, point As PointD, shapesHit As List(Of ShapeElement), includeTolerance As Boolean) As Boolean

Parameters

point
PointD

Point is in world units, relative to the Diagram's top-left.

shapesHit
List<ShapeElement>

Object that will receive the list of hit shapes.

includeTolerance
Boolean

true if the tolerance around the shape should be included when determining if the shape was hit.

Returns

true if a shape was hit, false otherwise.

Applies to

DoHitTest(PointD, DiagramHitTestInfo, Boolean)

Performs a hit test and returns the information in the DiagramHitTestInfo argument. The Diagram itself is considered a ShapeElement and will be returned if hit.

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 is in world units, relative to the Diagram's top-left.

hitTestInfo
DiagramHitTestInfo

Object that will receive the results of the hit test.

includeTolerance
Boolean

true if the tolerance around the shape should be included when determining if the shape was hit.

Returns

true if a shape was hit, false otherwise.

Applies to