Udostępnij za pośrednictwem


Metoda PortPlacementHelper.FindPerimeterRotation —

Biorąc pod uwagę początkowych i końcowych granice portu, znajdowanie odległości obrót na obwodzie składnika i kierunek obrotu.Zgodnie z ruchem wskazówek jest pozytywny i anticlockwise jest liczbą ujemną.Założenie: initialBounds i finalBounds są małe delta, od siebie.Stąd o nazwie między dwoma wywołania GetCompliantBounds

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Diagrams
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Składnia

'Deklaracja
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
)

Parametry

Wartość zwracana

Typ: System.Double

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

PortPlacementHelper Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Diagrams