ShapeGeometry::GetPath Method (IGeometryHost^)

 

Gets the path around the shape geometry. Use the returned path before applying GetPath() to any other shape. Use GetPathCopy() if you want to retain a path.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual GraphicsPath^ GetPath(
	IGeometryHost^ geometryHost
)

Parameters

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

The shape or link.

Return Value

Type: System.Drawing.Drawing2D::GraphicsPath^

The path around the shape geometry.

This function returns a reference to the path used by this geometry. Do not dispose it. Use the path before using GetPath() again. If you require a copy, use GetPathCopy.

Return to top
Show: