端口的特定质数和最终区域,请在中查找元素和旋转方向的周长的旋转距离。如果为正数的和逆时针为负数。假设: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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。