Applies the visible appearance of one Excel built-in cell style to every
cell in an IXLSRange. The helper writes direct formatting by
setting the matching interior and font attributes
Syntax
TXLSBuiltinCellStyle = (
xbcNormal, xbcGood, xbcBad, xbcNeutral,
xbcCalculation, xbcCheckCell, xbcExplanatoryText, xbcInput,
xbcLinkedCell, xbcNote, xbcOutput, xbcWarningText,
xbcHeading1, xbcHeading2, xbcHeading3, xbcHeading4, xbcTitle, xbcTotal,
xbcAccent1, xbcAccent2, xbcAccent3, xbcAccent4, xbcAccent5, xbcAccent6);
procedure ApplyBuiltinStyle(AStyle: TXLSBuiltinCellStyle);
Example
Workbook.Sheets[1].Range['A1', 'D1'].ApplyBuiltinStyle(xbcHeading1);
Workbook.Sheets[1].Range['A2', 'D20'].ApplyBuiltinStyle(xbcAccent1);
See also