Interface IRotation
Namespace: IronPPT.Interfaces
Assembly: IronPPT.dll
Syntax
public interface IRotation
The rotation angle applied to a slide shape or graphic, expressed in degrees, is read and set through IRotation. A developer reaches for it to tilt a text box, spin an image, or angle a shape away from the horizontal, and assigns the angle through one place rather than scattering raw numbers across drawing code. Wrapping the angle in a contract keeps a rotation value distinct from the position and size measurements a shape also carries.
A developer usually obtains an IRotation from the element that supports rotation rather than building one directly. The concrete implementor in IronPPT is Rotation, and the contract exposes a single Value of type double, the angle in degrees, plus ToString for display. Reading Value reports the current angle; assigning it rotates the element. Positive and negative angles turn the element in opposite directions, so the same property both tilts and untilts.
IRotation rotation = new Rotation();
rotation.Value = 45.0;The add shape example places shapes a rotation can angle, and the add image how-to covers the images it spins.
Properties
Value
Declaration
double Value { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
ToString()
Declaration
string ToString()
Returns
| Type | Description |
|---|---|
| System.String |