Skip to content

API reference / Common / Engine types / GridCellFormatApply

Interface: GridCellFormatApply ​

The @apply… flags of a [GridCellFormat], each None when absent — the schema gives them no default.

Office reads them two ways (MS-OI29500 §2.1.721). On a styleSheet/cellStyleXfs/xf a flag says whether the named style applies that part (absent: true); on a styleSheet/cellXfs/xf it says whether a change to the named style overwrites the cell's (absent: false). Neither changes what a cell is drawn with — that is the format's own indices — but a save writes them back.

Properties ​

PropertyDescription
numberFormat?
boolean
styleSheet/cellXfs/xf/@applyNumberFormat.
font?
boolean
styleSheet/cellXfs/xf/@applyFont.
fill?
boolean
styleSheet/cellXfs/xf/@applyFill.
border?
boolean
styleSheet/cellXfs/xf/@applyBorder.
alignment?
boolean
styleSheet/cellXfs/xf/@applyAlignment.
protection?
boolean
styleSheet/cellXfs/xf/@applyProtection.