如果为端口的初始和最后边界,则查看该组件和旋转方向的周边的旋转距离。 顺时针是积极的且逆时针是消极的。 假设: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
)
参数
- 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。