2.5.249 StyleXF
The StyleXF structure specifies formatting properties for a cell style.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alc |
A |
alcV |
B |
trot |
cIndent |
C |
D |
E |
unused |
||||||||||||||||||||||
dgLeft |
dgRight |
dgTop |
F |
icvLeft |
icvRight |
G |
|||||||||||||||||||||||||
icvTop |
icvBottom |
icvDiag |
dgDiag |
H |
fls |
||||||||||||||||||||||||||
icvFore |
icvBack |
I |
alc (3 bits): A HorizAlign that specifies the horizontal alignment.
A - fWrap (1 bit): A bit that specifies whether cell text is wrapped.
alcV (3 bits): A VertAlign that specifies the vertical alignment.
B - fJustLast (1 bit): A bit that specifies whether the justified or distributed alignment of the cell is used on the last line of text. (Setting this to 1 is typical for East Asian text but not typical in other contexts). If this field equals 1 then alc MUST equal 7.
trot (1 byte): An XFPropTextRotation that specifies the text rotation.
cIndent (4 bits): An unsigned integer that specifies the text indentation level. MUST be less than or equal to 15.
C - fShrinkToFit (1 bit): A bit that specifies whether a cell is shrink to fit.
D - reserved1 (1 bit): MUST be zero and MUST be ignored.
E - iReadOrder (2 bits): A ReadingOrder that specifies the reading order.
unused (1 byte): Undefined and MUST be ignored.
dgLeft (4 bits): A BorderStyle that specifies the logical left border formatting.
dgRight (4 bits): A BorderStyle that specifies the logical right border formatting.
dgTop (4 bits): A BorderStyle that specifies the top border formatting.
F - dgBottom (4 bits): A BorderStyle that specifies the bottom border formatting.
icvLeft (7 bits): An unsigned integer that specifies the color of the logical left border. The value MUST be one of the values specified in the icv field in IcvXF or zero. A value of zero means the left border color is not specified. If this value is zero then dgLeft MUST also be zero.
icvRight (7 bits): An unsigned integer that specifies the color of the logical right border. The value MUST be one of the values specified in the icv field in IcvXF or zero. A value of zero means the right border color is not specified. If this value is zero then dgRight MUST also be zero.
G - grbitDiag (2 bits): An unsigned integer that specifies which diagonal borders are present (if any). MUST be a value from the following table:
-
Value
Meaning
0x0
No diagonal border
0x1
Diagonal-down border
0x2
Diagonal-up border
0x3
Both diagonal-down and diagonal-up
icvTop (7 bits): An unsigned integer that specifies the color of the top border. The value MUST be one of the values specified in the icv field in IcvXF or zero. A value of zero means the top border color was not specified. If this value is zero then dgTop MUST also be zero.
icvBottom (7 bits): An unsigned integer that specifies the color of the bottom border. The value MUST be one of the values specified in the icv field in IcvXF or zero. A value of zero means the bottom border color was not specified. If this value is zero then dgBottom MUST also be zero.
icvDiag (7 bits): An unsigned integer that specifies the color of the diagonal border. The value MUST be one of the values specified in the icv field in IcvXF or zero. A value of zero means the diagonal border color has not been specified. If this value is zero then dgDiag MUST also be zero.
dgDiag (4 bits): A BorderStyle that specifies the diagonal border formatting.
H - reserved2 (1 bit): MUST be zero and MUST be ignored.
fls (6 bits): A FillPattern that specifies the fill pattern. If this value is 1 which specifies a solid fill pattern only icvFore is rendered.
icvFore (7 bits): An IcvXF that specifies the foreground color of the fill pattern.
icvBack (7 bits): An unsigned integer that specifies the background color of the fill pattern. The value MUST be an IcvXF value.
I - reserved3 (2 bits): MUST be zero and MUST be ignored.