IGeometryHost.TranslateGeometryToRelativeBounds 方法
會轉譯為相對於左上方的 IGeometryHost 的父座標絕對的全局座標的矩形。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Function TranslateGeometryToRelativeBounds ( _
absoluteBounds As RectangleD _
) As RectangleD
RectangleD TranslateGeometryToRelativeBounds(
RectangleD absoluteBounds
)
參數
- absoluteBounds
型別:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
以全局單位表示相對於圖表的矩形的左上角。
傳回值
型別:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。