ShapeGeometry.GetPath 方法 (IGeometryHost)

获取形状几何图形周围的路径。 在将 GetPath() 应用于任何其他形状前,使用返回路径。 如果要想要保留路径,请使用 GetPathCopy() 。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
Public Overridable Function GetPath ( _
    geometryHost As IGeometryHost _
) As GraphicsPath
public virtual GraphicsPath GetPath(
    IGeometryHost geometryHost
)

参数

返回值

类型:System.Drawing.Drawing2D.GraphicsPath
形状几何图形周围的路径。

备注

此函数返回到此使用几何路径的引用。 不要将其配置为。 在再次使用 GetPath() 之前使用路径。 如果您需要一个副本,请使用 GetPathCopy

.NET Framework 安全性

请参阅

参考

ShapeGeometry 类

GetPath 重载

Microsoft.VisualStudio.Modeling.Diagrams 命名空间