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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public Overridable Function GetPath ( _
geometryHost As IGeometryHost _
) As GraphicsPath
public virtual GraphicsPath GetPath(
IGeometryHost geometryHost
)
public:
virtual GraphicsPath^ GetPath(
IGeometryHost^ geometryHost
)
abstract GetPath :
geometryHost:IGeometryHost -> GraphicsPath
override GetPath :
geometryHost:IGeometryHost -> GraphicsPath
public function GetPath(
geometryHost : IGeometryHost
) : GraphicsPath
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.
Remarks
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.
.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.