共用方式為


ShapeGeometry.GetPath 方法 (IGeometryHost)

取得路徑來解決圖形幾何。使用傳回的路徑,再套用GetPath()至任何其他的圖形。使用GetPathCopy()如果您想要保留的路徑。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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 命名空間