Condividi tramite


SwimlaneShapeGeometry.DoHitTestSelection Method

Definition

Returns a value indicating whether the given point is within the boundary of the geometry's surrounding selection feedback. The hit test results are also returned.

public:
 override bool DoHitTestSelection(Microsoft::VisualStudio::Modeling::Diagrams::IGeometryHost ^ geometryHost, Microsoft::VisualStudio::Modeling::Diagrams::PointD hitPoint, Microsoft::VisualStudio::Modeling::Diagrams::DiagramHitTestInfo ^ hitTestInfo);
public override bool DoHitTestSelection (Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost geometryHost, Microsoft.VisualStudio.Modeling.Diagrams.PointD hitPoint, Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo hitTestInfo);
override this.DoHitTestSelection : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo -> bool
Public Overrides Function DoHitTestSelection (geometryHost As IGeometryHost, hitPoint As PointD, hitTestInfo As DiagramHitTestInfo) As Boolean

Parameters

geometryHost
IGeometryHost

The instance data for the geometry.

hitPoint
PointD

The point to test. The point is in world units and is relative to the top-left of the IGeometryHost's parent.

hitTestInfo
DiagramHitTestInfo

The object which will be updated with the hit test results.

Returns

true if the given point is within the boundary of the geometry's surrounding selection feedback.

Applies to