LinkShapeGeometry.CalculateRotationAngle Method
Calculates the rotation angle of a link shape's decorator.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Public Function CalculateRotationAngle ( _
pt1 As PointD, _
pt2 As PointD _
) As Single
public float CalculateRotationAngle(
PointD pt1,
PointD pt2
)
public:
float CalculateRotationAngle(
PointD pt1,
PointD pt2
)
member CalculateRotationAngle :
pt1:PointD *
pt2:PointD -> float32
public function CalculateRotationAngle(
pt1 : PointD,
pt2 : PointD
) : float
Parameters
- pt1
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The endpoint of the line that contains the decorator.
- pt2
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The other endpoint of the line.
Return Value
Type: System.Single
.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.