SheetXL - v0.3.20
    Preparing search index...

    Interface IFill

    Defines how an area or shape is filled with color or a pattern.

    interface IFill {
        getType(): IFill.Type;
        toCSS(darkMode?: boolean, bounds?: Bounds): Properties;
        toJSON(): IFill.JSON;
    }

    Hierarchy (View Summary)

    Index

    Methods

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

      Parameters

      • OptionaldarkMode: boolean
      • Optionalbounds: Bounds

      Returns Properties

      Not all fill styles will offer an exact css equivalent. Additionally due to the nature of css having different properties for the same logic value (for example color, backgroundColor)