NodeShapeGeometry::Contains Method (IGeometryHost^, PointD, DiagramHitTestInfo^)

 

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)

protected:
virtual bool Contains(
	IGeometryHost^ geometryHost,
	PointD point,
	DiagramHitTestInfo^ hitTestInfo
)

Parameters

geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams::IGeometryHost^

The instance data for the geometry.

point
Type: Microsoft.VisualStudio.Modeling.Diagrams::PointD

Point in world coordinates relative to the Diagram's top-left.

hitTestInfo
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramHitTestInfo^

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

Return Value

Type: System::Boolean
Return to top
Show: