modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface FillData

    Cell background fill properties.

    interface FillData {
        bgColor: string | null;
        bgColorSpec?: ColorData | null;
        fgColor: string | null;
        fgColorSpec?: ColorData | null;
        gradientFill?: GradientFillData | null;
        patternType: string & {} | PatternType;
    }
    Index
    bgColor: string | null

    Background color (used with pattern fills) as hex RGB (RRGGBB) or ARGB (AARRGGBB), with or without a leading #; written as uppercase ARGB (FF alpha added for RRGGBB) and read back in that form.

    bgColorSpec?: ColorData | null

    The full background colour; see ColorData for the precedence rule against bgColor.

    fgColor: string | null

    Foreground color as hex RGB (RRGGBB) or ARGB (AARRGGBB), with or without a leading #; written as uppercase ARGB (FF alpha added for RRGGBB) and read back in that form.

    fgColorSpec?: ColorData | null

    The full foreground colour; see ColorData for the precedence rule against fgColor.

    gradientFill?: GradientFillData | null

    Gradient fill configuration (alternative to pattern fill).

    patternType: string & {} | PatternType

    Fill pattern type (e.g., 'none', 'solid', 'gray125'); '' when the patternType is absent (a gradient fill, or a bare <patternFill/>).