Search Results for

    Show / Hide Table of Contents

    Interface ISaturation

    Inherited Members
    IBaseColorField.Modulation
    IBaseColorField.Offset
    Namespace: IronPPT.Interfaces
    Assembly: IronPPT.dll
    Syntax
    public interface ISaturation : IBaseColorField

    ISaturation adjusts how vivid or muted a color appears on a slide, the intensity dimension a developer changes to make a fill richer or more washed out without altering its hue. It sits in the color-field family alongside the hue and luminance contracts, so a project that tunes one aspect of a color tunes the others through the same shape. Reach for it when a theme color needs to be dialed up or down rather than replaced.

    A developer obtains an ISaturation from the color it belongs to rather than constructing it in isolation. The concrete implementor in IronPPT is Saturation, which builds on the shared BaseColorField base, so it inherits the common color-field behavior while exposing saturation specifically. Its Value is an IPercentage, the proportional contract, because saturation is a proportion rather than an absolute figure: read Value.Value for the current level and assign a new IPercentage to change it.

    ISaturation saturation = new Saturation();
    saturation.Value = new Percentage { Value = 60.0 };

    The paragraph style example and the add shape example show colors that saturation can tune.

    Properties

    Value

    Declaration
    IPercentage Value { get; set; }
    Property Value
    Type Description
    IPercentage

    Inherited members

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