Bagikan melalui


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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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

Return Value

Type: 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

See Also

Reference

ShapeGeometry Class

GetPath Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace