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

    Interface StylesData

    The shared style tables for the entire workbook.

    interface StylesData {
        borders: BorderData[];
        cellStyles?: CellStyleData[];
        cellStyleXfs?: CellXfData[];
        cellXfs: CellXfData[];
        colorsXml?: string | null;
        dxfs?: DxfStyleData[];
        extLstXml?: string | null;
        fills: FillData[];
        fonts: FontData[];
        numFmts: NumFmt[];
        tableStylesXml?: string | null;
    }
    Index
    borders: BorderData[]

    Border definitions referenced by CellXfData.borderId.

    cellStyles?: CellStyleData[]

    Named cell styles (e.g., 'Normal', 'Heading 1').

    cellStyleXfs?: CellXfData[]

    The cellStyleXfs records that cellStyles and CellXfData.xfId point at. When empty, the writer emits the single default record Excel expects.

    cellXfs: CellXfData[]

    Cell format records -- each cell's styleIndex indexes into this array.

    colorsXml?: string | null

    The source <colors> element (indexed palette, MRU colours), verbatim.

    dxfs?: DxfStyleData[]

    Differential formatting styles (used by conditional formatting and tables).

    extLstXml?: string | null

    The <styleSheet>-level <extLst> element, verbatim, with the namespace declarations it inherited.

    fills: FillData[]

    Fill definitions referenced by CellXfData.fillId.

    fonts: FontData[]

    Font definitions referenced by CellXfData.fontId.

    numFmts: NumFmt[]

    The number formats the workbook defines (<numFmts>), looked up by NumFmt.id.

    tableStylesXml?: string | null

    The source <tableStyles> element, verbatim.