sheetex - v1.3.0
    Preparing search index...

    Interface Fill

    填充:包含填充图样、前景色、背景色

    纯红色背景

    const bgRed = {
    patternType: 'solid',
    fgColor: 'FF0000',
    }

    使用纯色填充 solid 时,前景色完全覆盖背景色,所以设置纯色背景时,颜色要设置在 fgColor 上而非 bgColor

    interface Fill {
        patternType:
            | "none"
            | "solid"
            | "darkHorizontal"
            | "lightHorizontal"
            | "darkGray"
            | "darkVertical"
            | "lightVertical"
            | "mediumGray"
            | "darkDown"
            | "lightDown"
            | "lightGray"
            | "darkUp"
            | "lightUp"
            | "gray125"
            | "darkGrid"
            | "lightGrid"
            | "gray0625"
            | "darkTrellis"
            | "lightTrellis";
        fgColor?: string;
        bgColor?: string;
    }
    Index

    Properties

    patternType:
        | "none"
        | "solid"
        | "darkHorizontal"
        | "lightHorizontal"
        | "darkGray"
        | "darkVertical"
        | "lightVertical"
        | "mediumGray"
        | "darkDown"
        | "lightDown"
        | "lightGray"
        | "darkUp"
        | "lightUp"
        | "gray125"
        | "darkGrid"
        | "lightGrid"
        | "gray0625"
        | "darkTrellis"
        | "lightTrellis"

    填充图样

    大多数在线预览功能仅支持 none 和 solid 类型

    fgColor?: string

    前景色

    bgColor?: string

    背景色