STYLE: Style Information (293h)

Each style in a Microsoft Excel workbook, whether built-in or user-defined, requires a style record in the BIFF file. When Microsoft Excel saves the workbook, it writes the STYLE records in alphabetical order, which is the order in which the styles appear in the drop-down list box.

Record Data Built-in Styles

Offset

Name

Size

Contents

4

ixfe

2

Index to the style XF record.

Note: ixfe uses only the low-order 12 bits of the field (bits 11–0). Bits 12, 13, and 14 are unused, and bit 15 (fBuiltIn) is 1 for built-in styles.

6

istyBuiltIn

1

Built-in style numbers:
= 00h Normal
= 01h RowLevel_n
= 02h ColLevel_n
= 03h Comma
= 04h Currency
= 05h Percent
= 06h Comma[0]
= 07h Currency[0]

7

iLevel

1

Level of the outline style RowLevel_n or ColLevel_n (see text).


Record Data User-Defined Styles

Offset

Name

Size

Contents

4

ixfe

2

Index to the style XF record.

Note: ixfe uses only the low-order 12 bits of the field (bits 11–0). Bits 12, 13, and 14 are unused, and bit 15 (fBuiltIn) is 0 for user-defined styles.

6

cch

1

Length of the style name.

7

rgch

(var)

Style name.


The automatic outline styles — RowLevel_1 through RowLevel_7, and ColLevel_1 through ColLevel_7 — are stored by setting istyBuiltIn to 01h or 02h and then setting iLevel to the style level minus 1. If the style is not an automatic outline style, ignore this field.