Post on 11-Apr-2017
transcript
DrawingML
Tables
Tables Overview
Table Styles Overview
• Define the presentation of the table• Separate from data
Blue Red Green Orange
Monday 12.2 2.1 6.8 18.2
Tuesday 3.5 21.2 4.5 14.7
Wednesday 4.7 2.3 17.6 14.5
Thursday 18.7 8.4 7.4 13.0
Friday 22.3 13.4 3.4 12.3
Blue Red Green Orange
Monday 12.2 2.1 6.8 18.2
Tuesday 3.5 21.2 4.5 14.7
Wednesday 4.7 2.3 17.6 14.5
Thursday 18.7 8.4 7.4 13.0
Friday 22.3 13.4 3.4 12.3
Same Table, Different Styles
Table Style Structure
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
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
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
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
Style Option PropertiesAvailable list of formatting options which can be applied to a table.
All options are defined by a Table Part (see previous slide)
Table Definition Overview
• Definition of a table• Holds the data
data data data data datadata data data data datadata data data data datadata data data data datadata data data data data
Example Table
Table Definition Structure
Cell Properties
These properties act as overrides to what may already be defined in a table style.
Table Properties
These properties act as overrides to what may already be defined in a table style.
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
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
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
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 Table
The ‘0’ values indicate that the height of the row is based entirely on font size, i.e. it will size to fit the font
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.
DisclaimerThis 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.