PortPlacementHelper.FindPerimeterRotation 方法
指定初始與最終的連接埠的範圍,尋找在週邊元件和旋轉方向的旋轉距離。順時針的方向是正數,anticlockwise 是負數。假設: initialBounds 和 finalBounds 是較小的差異。因此呼叫兩個 GetCompliantBounds 呼叫之間
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Public Overridable Function FindPerimeterRotation ( _
parentShape As NodeShape, _
initialBounds As RectangleD, _
initialPlacement As PortPlacement, _
finalBounds As RectangleD, _
finalPlacement As PortPlacement _
) As Double
public virtual double FindPerimeterRotation(
NodeShape parentShape,
RectangleD initialBounds,
PortPlacement initialPlacement,
RectangleD finalBounds,
PortPlacement finalPlacement
)
參數
- parentShape
型別:Microsoft.VisualStudio.Modeling.Diagrams.NodeShape
- initialBounds
型別:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
相對於父項的內部連接埠範圍
- initialPlacement
型別:Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement
- finalBounds
型別:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
相對於父代的最後一個連接埠範圍
- finalPlacement
型別:Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。