共用方式為


IGeometryHost.TranslateGeometryToRelativeBounds 方法

將矩形從絕對全局座標轉譯為相對於 IGeometryHost 父代左上方的座標。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

語法

'宣告
Function TranslateGeometryToRelativeBounds ( _
    absoluteBounds As RectangleD _
) As RectangleD
RectangleD TranslateGeometryToRelativeBounds(
    RectangleD absoluteBounds
)

參數

傳回值

類型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

.NET Framework 安全性

請參閱

參考

IGeometryHost 介面

Microsoft.VisualStudio.Modeling.Diagrams 命名空間