Search Results for

    Show / Hide Table of Contents

    Interface IBaseColorField

    Namespace: IronPPT.Interfaces
    Assembly: IronPPT.dll
    Syntax
    public interface IBaseColorField

    IBaseColorField is the shared contract for a single adjustable component of a color, the common shape behind hue, saturation, and luminance fields. It carries two properties, both typed as IPercentage: Modulation scales the component by a multiplier and Offset shifts it by a fixed amount, so a theme color can be nudged without redefining it outright.

    The concrete fields that implement the contract are Hue, Saturation, and Luminance, each deriving from the abstract BaseColorField; ColorField is the general implementation. Most code reaches these through a Color rather than naming the interface, but coding against IBaseColorField lets a single routine read or set the Modulation and Offset of any component uniformly. The richer IColorField interface extends this base when a field needs more than the two adjustment values.

    IBaseColorField field = hue;
    field.Modulation = new Percentage(75);

    The paragraph style example styles slide content, and the IColorField reference extends this contract.

    Properties

    Modulation

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

    Offset

    Declaration
    IPercentage Offset { get; set; }
    Property Value
    Type Description
    IPercentage
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet