Styles Part
Content Type: |
application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml |
Root Namespace: |
http://schemas.openxmlformats.org/spreadsheetml/2006/mains |
Source Relationship: |
http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles |
An instance of this part type contains all the characteristics for all the cells in the workbook. Such information includes numeric and text formatting, alignment, font, color, and border.
A package shall contain no more than one Styles part, and that part shall be the target of an implicit relationship from the Workbook (§12.3.23) part.
<Relationships xmlns="…"> <Relationship Id="rId5" Type="http://…/styles" Target="styles.xml"/> </Relationships>
The root element for a part of this content type shall be< styleSheet>
.
<styleSheet xmlns="…"> <numFmts count="5"> <numFmt numFmtId="164" formatCode=""$"#,##0.00"/> <numFmt numFmtId="165" formatCode=""Yes";"Yes";"No""/> <numFmt numFmtId="166" formatCode=""True";"True";"False""/> <numFmt numFmtId="167" formatCode=""On";"On";"Off""/> <numFmt numFmtId="168" formatCode="[$€-2]\ #,##0.00_);[Red]\([$€-2]\ #,##0.00\)"/> </numFmts> <fonts count="5"> … </fonts> <fills count="4"> … </fills> <borders count="1"> … </borders> … <colors> … </colors> </styleSheet>
A Styles part shall be located within the package containing the source relationship (expressed syntactically, the @TargetMode
attribute of the <Relationship>
element shall be Internal
).
A Styles part shall not have implicit or explicit relationships to any other part defined by this Standard.