This document provides an overview of how tables are structured and styled in DrawingML. It explains that table styles define the visual presentation of the table separately from the data. It then describes the individual style components that make up a table style including the table background, whole table properties, and style option properties. It also summarizes how table data is defined and structured within a table including table properties, rows, grids, and cells.
5. Table Style In Action
Table Background (Table Background Style)
Whole Table Properties (Table Part Style x1)
Style Option Properties (Table Part Styles x13)
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
6. Table Background (tblBg)
• Responsible for fill and effects applied to the
entire table
text text text text text
text text text text text
text text text text text
text text text text text
text text text text text
Themed Fill Themed Effect
Themed Fill
Themed Effect
7. Whole Table Properties (wholeTbl)
Defines entire table
fill, line, and font
properties
Font Properties
Cell Border
Properties*
Cell Fill
Properties*
*see “Cell Properties Definition” for
explanation of the Cell Fill & Border
Properties
8. Cell Properties Definition (Table Part)
text text text text text
text text text text text
text text text text text
text text text text text
text text text text text
This happens
to defines the
style for the
first row
formatting
9. Style Option Properties
Available list of formatting options which can be applied to a table.
All options are defined by a Table Part (see previous slide)
10. Table Definition Overview
• Definition of a table
• Holds the data
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
Example Table
14. Example Table
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
Table Rows
Table Grid
Table Props
15. Table Properties
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
1. The table style is a built in style, notice the GUID.
2. The “firstRow” formatting is enabled.
3. The “rowBanding” formatting is enabled.
First Row Formatting
Row Banding Enabled
16. Table Grid
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
This is simply defining the width of
each column in the table.
Width
17. Table Row
• Holds the data for the table within a cell
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
Shown above are the corresponding
cells in XML and in the TableThe ‘0’ values indicate that the height of the row is
based entirely on font size, i.e. it will size to fit the
font
18. Table Cell
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
The Table Cell actually holds the data for a give
cell.
In the above example, there is no extra
formatting applied and the defaults are used.
19. Disclaimer
This presentation is for informational purposes only, and should
not be relied upon as a substitute or replacement for Microsoft
formal file format documentation, which is available at the
following website: https://msdn.microsoft.com/en-
us/library/cc313118(v=office.12).aspx. Any views or opinions
presented in this material are solely those of the author and do
not necessarily represent those of Microsoft. Microsoft
disclaims all liability for mistakes or inaccuracies in this
presentation.