다음을 통해 공유


ShapeElement.DoHitTest Method

Definition

Overloads

DoHitTest(PointD, DiagramHitTestInfo)

Performs a hittest given a point relative to the Diagram's top-left in world units.

DoHitTest(PointD, DiagramHitTestInfo, Boolean)

Performs a hittest given a point relative to the Diagram's top-left in world units.

DoHitTest(PointD, DiagramHitTestInfo)

Performs a hittest given a point relative to the Diagram's top-left in world units.

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

Parameters

point
PointD

Point in world coordinates relative to the parent ShapeElement's top-left.

hitTestInfo
DiagramHitTestInfo

the object that will receive the return values for which (sub)shape, which field, and which grabHandle

Returns

true if a ShapeElement was hit, false otherwise.

Applies to

DoHitTest(PointD, DiagramHitTestInfo, Boolean)

Performs a hittest given a point relative to the Diagram's top-left in world units.

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

Parameters

point
PointD

Point in world coordinates relative to the parent ShapeElement's top-left.

hitTestInfo
DiagramHitTestInfo

the object that will receive the return values for which (sub)shape, which field, and which grabHandle

includeTolerance
Boolean

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

Returns

true if a ShapeElement was hit, false otherwise.

Applies to