2.4.798 BrtStyle

The BrtStyle record specifies a cell style (section 2.2.6.1.2). A record of this type exists for each cell style used in the workbook.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ixf

grbitObj1

iStyBuiltIn

iLevel

stName (variable)

...

ixf (4 bytes): An unsigned integer that specifies a zero-based index of a BrtXF (section 2.4.862) record in the collection of all records directly following BrtBeginCellStyleXFs (section 2.4.20). The referenced BrtXF specifies the cell formatting for this cell style.

This value MUST be unique with respect to the value of ixf in all other BrtStyle records in the workbook.

grbitObj1 (2 bytes): A StyleFlags (section 2.5.145) structure which specifies properties for this cell style.

iStyBuiltIn (1 byte): An unsigned integer that specifies a built-in cell style. If this value is nonzero, this cell style is a built-in cell style and grbitObj1.fBuiltIn MUST equal 1. If this value is equal to 1 or 2, the value of iLevel is needed to specify the built-in cell style. For all other values, iStyBuiltIn is sufficient to identify the built-in cell style. To see a list of all built-in cell styles, refer to [ISO/IEC29500-1:2016], section 18.8.7.

iLevel (1 byte): An unsigned integer that specifies, in conjunction with iStyBuiltIn, a built-in cell style. If iStyBuiltIn is equal to 1, the specified built-in cell style is RowLevel_n [ISO/IEC29500-1:2016], section 18.8.7, where n is an integer equal to the value of iLevel + 1. Similarly, if iStyBuiltIn is equal to 2, the specified built-in cell style is ColLevel_n [ISO/IEC29500-1:2016], section 18.8.7. If iStyBuiltIn is equal to 1 or 2, the value of iLevel MUST be between 0 and 6 inclusive. If iStyBuiltIn is equal to any other value, iLevel MUST be ignored.

stName (variable): A CellStyleName (section 2.5.11) which specifies the name of this cell style. If this cell style is built-in, the name of the cell style is defined by the built-in cell style identified by iStyBuiltIn and iLevel instead of this value.