Search Results for

    Show / Hide Table of Contents

    Class Rotation

    Inheritance
    System.Object
    Rotation
    Implements
    IRotation
    Namespace: IronPPT.Models
    Assembly: IronPPT.dll
    Syntax
    public class Rotation : Object, IRotation

    When a shape or text box needs to sit at an angle on a slide, Rotation carries that angle. It holds a single rotation amount in degrees, so a graphic can be turned clockwise or counter-clockwise from its default upright position without recomputing its placement coordinates.

    The angle is stored in the Value property, a double measured in degrees, where positive numbers rotate the element around its center. An implicit conversion from double lets a plain number assign straight to a Rotation, so 45 reads as a forty-five-degree turn with no wrapper boilerplate. ToString renders the angle for logging or inspection. Rotation implements IRotation, the contract the elements that support turning expose, which keeps the angle described the same way across every rotatable item in a presentation.

    Rotation angle = 45;

    The add shape example places the shapes a rotation turns, and the slide element tutorial covers positioning content on a slide.

    Constructors

    Rotation()

    Declaration
    public Rotation()

    Properties

    Value

    Declaration
    public double Value { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Operators

    Implicit(Double to Rotation)

    Declaration
    public static implicit operator Rotation(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type Description
    Rotation

    Implements

    IRotation
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet