Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.