PortPlacementHelper::FindPerimeterRotation Method (NodeShape^, RectangleD, PortPlacement, RectangleD, PortPlacement)
Visual Studio 2015
Given initial and final bounds of the port, find the rotation distance on the perimeter of the component and the rotation direction. Clockwise is positive and anticlockwise is negative. Assumption: initialBounds and finalBounds are a small delta apart. Hence called between two GetCompliantBounds calls
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: virtual double FindPerimeterRotation( NodeShape^ parentShape, RectangleD initialBounds, PortPlacement initialPlacement, RectangleD finalBounds, PortPlacement finalPlacement )
Parameters
- parentShape
- Type: Microsoft.VisualStudio.Modeling.Diagrams::NodeShape^
- initialBounds
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::RectangleD
Initial port bounds relative to the parent
- initialPlacement
- Type: Microsoft.VisualStudio.Modeling.Diagrams::PortPlacement
- finalBounds
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::RectangleD
Final port bounds relative to the parent
- finalPlacement
- Type: Microsoft.VisualStudio.Modeling.Diagrams::PortPlacement
Return Value
Type: System::Double
Show: