VegaRise.NET
HomeAPI Reference
Back to Graphic

SetRotationMethod

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Overloads

SetRotation(double angle)

Sets the rotation angle of the graphic.

SetRotation(Rotation rotation)

Sets the rotation of the graphic using a pre-configured object. Rotation

SetRotation(double angle)

SetRotation(double angle)

Sets the rotation angle of the graphic.

Parameters

angle
Rotation angle in degrees (positive = clockwise).

Remarks

Rotation is applied around the graphic's anchor point, which is typically the center of the bounding box. The method automatically initializes if it is . The angle is normalized to the range [0, 360) by the class. Transform Rotation null

SetRotation(Rotation rotation)

SetRotation(Rotation rotation)

Sets the rotation of the graphic using a pre-configured object. Rotation

Parameters

rotation
The rotation object containing the angle.

Examples

csharp
1var graphic = new Graphic();
2graphic.SetRotation(45); // Rotates 45 degrees clockwise
3