NodeShapeGeometry.DoHitTestSelection Method
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.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
Public Overrides Function DoHitTestSelection ( _
geometryHost As IGeometryHost, _
hitPoint As PointD, _
hitTestInfo As DiagramHitTestInfo _
) As Boolean
public override bool DoHitTestSelection(
IGeometryHost geometryHost,
PointD hitPoint,
DiagramHitTestInfo hitTestInfo
)
public:
virtual bool DoHitTestSelection(
IGeometryHost^ geometryHost,
PointD hitPoint,
DiagramHitTestInfo^ hitTestInfo
) override
abstract DoHitTestSelection :
geometryHost:IGeometryHost *
hitPoint:PointD *
hitTestInfo:DiagramHitTestInfo -> bool
override DoHitTestSelection :
geometryHost:IGeometryHost *
hitPoint:PointD *
hitTestInfo:DiagramHitTestInfo -> bool
public override function DoHitTestSelection(
geometryHost : IGeometryHost,
hitPoint : PointD,
hitTestInfo : DiagramHitTestInfo
) : boolean
Parameters
- geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost
The instance data for the geometry.
- hitPoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The point to test. The point is in world units and is relative to the top-left of the IGeometryHost's parent.
- hitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo
The object which will be updated with the hit test results.
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.