SheetXL - v0.3.20
    Preparing search index...

    Interface IPattern

    A pattern fill, using a repeating pattern to fill the area.

    interface IPattern {
        getBackground(): IColor;
        getForeground(): IColor;
        getPatternType(): BuiltInSheetPattern;
        getType(): "pattern";
        toCSS(darkMode?: boolean, bounds?: Bounds): Properties;
        toJSON(): PatternJSON;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • The background color for the pattern.

      Returns IColor

    • The foreground color for the pattern.

      Returns IColor

    • 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)

    • Returns PatternJSON