## ShapeBase.Rotation property

Defines the angle (in degrees) that a shape is rotated. Positive value corresponds to clockwise rotation angle.

```csharp
public double Rotation { get; set; }
```

## Remarks

The default value is 0.

## Examples

Shows how to insert and rotate an image.

```csharp
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Insert a shape with an image.
Shape shape = builder.InsertImage(ImageDir + "Logo.jpg");
Assert.That(shape.CanHaveImage, Is.True);
Assert.That(shape.HasImage, Is.True);

// Rotate the image 45 degrees clockwise.
shape.Rotation = 45;

doc.Save(ArtifactsDir + "Shape.Rotate.docx");
```

### See Also

* class [ShapeBase](../)
* namespace [Aspose.Words.Drawing](../../../aspose.words.drawing/)
* assembly [Aspose.Words](../../../)
