PortPlacementHelper.FindPerimeterRotation(NodeShape, RectangleD, PortPlacement, RectangleD, PortPlacement) Méthode

Définition

Compte tenu des limites initiales et finales du port, recherche la distance de rotation sur le périmètre du composant et la direction de rotation. Sens des aiguilles d'une montre (angle positif), sens inverse des aiguilles d'une montre (angle négatif). Hypothèse : le delta entre initialBounds et finalBounds est faible. Par conséquent appelé entre deux appels de GetCompliantBounds

public:
 virtual double FindPerimeterRotation(Microsoft::VisualStudio::Modeling::Diagrams::NodeShape ^ parentShape, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD initialBounds, Microsoft::VisualStudio::Modeling::Diagrams::PortPlacement initialPlacement, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD finalBounds, Microsoft::VisualStudio::Modeling::Diagrams::PortPlacement finalPlacement);
public virtual double FindPerimeterRotation (Microsoft.VisualStudio.Modeling.Diagrams.NodeShape parentShape, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD initialBounds, Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement initialPlacement, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD finalBounds, Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement finalPlacement);
abstract member FindPerimeterRotation : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement -> double
override this.FindPerimeterRotation : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD * Microsoft.VisualStudio.Modeling.Diagrams.PortPlacement -> double
Public Overridable Function FindPerimeterRotation (parentShape As NodeShape, initialBounds As RectangleD, initialPlacement As PortPlacement, finalBounds As RectangleD, finalPlacement As PortPlacement) As Double

Paramètres

parentShape
NodeShape
initialBounds
RectangleD

Limites initiales du port relatives au parent

initialPlacement
PortPlacement
finalBounds
RectangleD

Limites de port finales relatives au parent

finalPlacement
PortPlacement

Retours

Double

S’applique à