Share via


Stroke.Rotate Method

Stroke.Rotate Method

Rotates the Stroke object around a center point.

Definition

Visual Basic .NET Public Sub Rotate( _
ByVal degrees As Single, _
ByVal point As Point _
)
C# public void Rotate(
float degrees,
Point point
);
Managed C++ public: void Rotate(
float *degrees,
Point *point
);

Parameters

degrees System.Single. The degrees by which to rotate clockwise.
point System.Drawing.Point. The point—in ink space coordinates—around which to rotate.

Examples

[C#]

This C# example applies a clockwise rotation of 60 degrees to a Stroke, theStroke, centered on a point at (600, 600).

Point theCenter = new Point(600, 600);
theStroke.Rotate(60.0f, theCenter);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example applies a clockwise rotation of 60 degrees to a Stroke, theStroke, centered on a point at (600, 600).

Dim theCenter As New Point(600, 600)
theStroke.Rotate(60.0f, theCenter)
                

See Also