Search Results for

    Show / Hide Table of Contents

    Class Hue

    Inheritance
    System.Object
    BaseColorField
    Hue
    Implements
    IHue
    IBaseColorField
    Inherited Members
    BaseColorField.Modulation
    BaseColorField.Offset
    Namespace: IronPPT.Models
    Assembly: IronPPT.dll
    Syntax
    public class Hue : BaseColorField, IHue, IBaseColorField

    A color adjustment that rotates the hue of a fill, the shift around the color wheel that turns a red toward orange or purple, is captured by Hue. Apply one as part of a color field when an element's color should be nudged by degrees rather than replaced outright.

    Angle, an IRotation, is the amount of rotation: it expresses how far around the color wheel the hue moves, so a larger angle produces a more pronounced shift. Because Hue builds on BaseColorField, it slots into the same color-adjustment model as the library's other field types and is applied where a color modifier is expected. For brevity the type also defines an implicit conversion from double, so a rotation can be written as a plain number and the runtime builds the Hue for you. Set Angle directly when you want an explicit IRotation, or assign a double when a degree value is enough. Since a hue shift only has meaning against a base color, configure it while styling the element's color. To style the slide element it modifies, begin from the styling workflow.

    using IronPPT.Models;
    
    Hue hue = 30;

    The slide element tutorial styles elements on a slide, and the add shape example places a shape whose color a hue can adjust.

    Constructors

    Hue()

    Declaration
    public Hue()

    Properties

    Angle

    Declaration
    public IRotation Angle { get; set; }
    Property Value
    Type Description
    IRotation

    Operators

    Implicit(Double to Hue)

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

    Implements

    IHue
    IBaseColorField

    Inherited members

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