Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Returns a value indicating whether the given point is within the boundary of the geometry. 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
'Declaration
Public Overrides Function DoHitTest ( _
geometryHost As IGeometryHost, _
hitPoint As PointD, _
hitTestInfo As DiagramHitTestInfo, _
includeTolerance As Boolean _
) As Boolean
public override bool DoHitTest(
IGeometryHost geometryHost,
PointD hitPoint,
DiagramHitTestInfo hitTestInfo,
bool includeTolerance
)
public:
virtual bool DoHitTest(
IGeometryHost^ geometryHost,
PointD hitPoint,
DiagramHitTestInfo^ hitTestInfo,
bool includeTolerance
) override
abstract DoHitTest :
geometryHost:IGeometryHost *
hitPoint:PointD *
hitTestInfo:DiagramHitTestInfo *
includeTolerance:bool -> bool
override DoHitTest :
geometryHost:IGeometryHost *
hitPoint:PointD *
hitTestInfo:DiagramHitTestInfo *
includeTolerance:bool -> bool
public override function DoHitTest(
geometryHost : IGeometryHost,
hitPoint : PointD,
hitTestInfo : DiagramHitTestInfo,
includeTolerance : boolean
) : 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. This argument may be null in which case it is ignored.
- includeTolerance
Type: System.Boolean
true if the tolerance around the geometry should be included when determining if the geometry was hit.
Return Value
Type: System.Boolean
Remarks
The geometry boundary includes the thickness of the outline pen that lies outside of the graphics path used to draw the geometry.
.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.