NodeShapeGeometry.Contains Method
Gets a value indicating whether the point is within the geometry outline. The geometry outline is defined by the graphics path used to draw the geometry.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Protected Overridable Function Contains ( _
geometryHost As IGeometryHost, _
point As PointD, _
hitTestInfo As DiagramHitTestInfo _
) As Boolean
protected virtual bool Contains(
IGeometryHost geometryHost,
PointD point,
DiagramHitTestInfo hitTestInfo
)
protected:
virtual bool Contains(
IGeometryHost^ geometryHost,
PointD point,
DiagramHitTestInfo^ hitTestInfo
)
abstract Contains :
geometryHost:IGeometryHost *
point:PointD *
hitTestInfo:DiagramHitTestInfo -> bool
override Contains :
geometryHost:IGeometryHost *
point:PointD *
hitTestInfo:DiagramHitTestInfo -> bool
protected function Contains(
geometryHost : IGeometryHost,
point : PointD,
hitTestInfo : DiagramHitTestInfo
) : boolean
Parameters
geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHostThe instance data for the geometry.
point
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDPoint in world coordinates relative to the Diagram's top-left.
hitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramHitTestInfoThe 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.