ShapeGeometry.DoHitTestSelection Method
Determines whether a point is inside the selection highlight of a shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Public MustOverride Function DoHitTestSelection ( _
geometryHost As IGeometryHost, _
hitPoint As PointD, _
hitTestInfo As DiagramHitTestInfo _
) As Boolean
public abstract bool DoHitTestSelection(
IGeometryHost geometryHost,
PointD hitPoint,
DiagramHitTestInfo hitTestInfo
)
public:
virtual bool DoHitTestSelection(
IGeometryHost^ geometryHost,
PointD hitPoint,
DiagramHitTestInfo^ hitTestInfo
) abstract
abstract DoHitTestSelection :
geometryHost:IGeometryHost *
hitPoint:PointD *
hitTestInfo:DiagramHitTestInfo -> bool
public abstract function DoHitTestSelection(
geometryHost : IGeometryHost,
hitPoint : PointD,
hitTestInfo : DiagramHitTestInfo
) : boolean
Parameters
- geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost
The shape or link.
- hitPoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The point to test, relative to the bounds of the shape.
- hitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfo
The object that will receive the results of the hit test.
Return Value
Type: System.Boolean
true if the point was inside the selection highlight; otherwise, false.
.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.