SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface ISolid

    A single color fill.

    interface ISolid {
        isIFill: true;
        getColor(): IColor;
        getType(): "solid";
        hasVisibleStyling(): boolean;
        isEqual(other: IFill | null): boolean;
        setColor(color: Serializable | null, options?: UpdateOptions): ISolid;
        toCSS(mode?: CSSMode, size?: Size): Properties;
        toJSON(): IFill.JSON;
    }

    Hierarchy (View Summary)

    Index
    isIFill: true

    For type checking.

    • Returns true if the fill has any visible styling

      Returns boolean

    • Returns true if the fill is equal to the other fill.

      Parameters

      Returns boolean

    • Returns the fill as a set of css string that are suitable for css.

      Parameters

      • Optionalmode: CSSMode

        The color rendering mode (see IColor.CSSMode): a boolean bakes that mode; 'adaptive' emits light-dark() so a light/dark flip needs no re-render. (Pattern fills bake their SVG data-URI body regardless — a data-URI never sees the host color-scheme.)

      • Optionalsize: Size

        Indicates the size of the area being filled.

      Returns Properties

      Size is used for determining the scaling or tiling of the fill within the specified area. (e.g. Scaled Gradient Fill).