Share via


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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
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

Return Value

Type: System.Double

.NET Framework Security

See Also

Reference

PortPlacementHelper Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace