PortPlacementHelper.FindPerimeterRotation 方法

如果为端口的初始和最后边界,则查看该组件和旋转方向的周边的旋转距离。 顺时针是积极的且逆时针是消极的。 假设:initialBounds 和 finalBounds 划分为较小的增量。 因此在 GetCompliantBounds 调用之间调用

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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
)

参数

返回值

类型:System.Double

.NET Framework 安全性

请参阅

参考

PortPlacementHelper 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间