PortPlacementHelper.FindPerimeterRotation Method
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
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Dichiarazione
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
)
public:
virtual double FindPerimeterRotation(
NodeShape^ parentShape,
RectangleD initialBounds,
PortPlacement initialPlacement,
RectangleD finalBounds,
PortPlacement finalPlacement
)
abstract FindPerimeterRotation :
parentShape:NodeShape *
initialBounds:RectangleD *
initialPlacement:PortPlacement *
finalBounds:RectangleD *
finalPlacement:PortPlacement -> float
override FindPerimeterRotation :
parentShape:NodeShape *
initialBounds:RectangleD *
initialPlacement:PortPlacement *
finalBounds:RectangleD *
finalPlacement:PortPlacement -> float
public function FindPerimeterRotation(
parentShape : NodeShape,
initialBounds : RectangleD,
initialPlacement : PortPlacement,
finalBounds : RectangleD,
finalPlacement : PortPlacement
) : double
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.