PortPlacementHelper.FindPerimeterRotation 方法

端口的特定质数和最终区域,请在中查找元素和旋转方向的周长的旋转距离。如果为正数的和逆时针为负数。假设: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
)

参数

返回值

类型:System.Double

.NET Framework 安全性

请参见

参考

PortPlacementHelper 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间