Compartilhar via


ShapeField.DoHitTest(PointD, ShapeElement, DiagramHitTestInfo) Method

Definition

Gets a value indicating whether the specified point is within the bounds of the ShapeField.

public:
 virtual void DoHitTest(Microsoft::VisualStudio::Modeling::Diagrams::PointD point, Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::DiagramHitTestInfo ^ diagramHitTestInfo);
public virtual void DoHitTest (Microsoft.VisualStudio.Modeling.Diagrams.PointD point, Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape, Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo diagramHitTestInfo);
abstract member DoHitTest : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo -> unit
override this.DoHitTest : Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo -> unit
Public Overridable Sub DoHitTest (point As PointD, parentShape As ShapeElement, diagramHitTestInfo As DiagramHitTestInfo)

Parameters

point
PointD

A point in world units relative to the specified parent ShapeElement's top-left

parentShape
ShapeElement

The ShapeElement to which this ShapeField belongs

diagramHitTestInfo
DiagramHitTestInfo

The hit test information to update with the hit test results.

Applies to