19
DrawingML Tables

DrawingML Subject: Tables

Embed Size (px)

Citation preview

Page 1: DrawingML Subject: Tables

DrawingML

Tables

Page 2: DrawingML Subject: Tables

Tables Overview

Page 3: DrawingML Subject: Tables

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

Page 4: DrawingML Subject: Tables

Table Style Structure

Page 5: DrawingML Subject: Tables

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

Page 6: DrawingML Subject: Tables

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

Page 7: DrawingML Subject: Tables

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

Page 8: DrawingML Subject: Tables

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

Page 9: DrawingML Subject: Tables

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)

Page 10: DrawingML Subject: Tables

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

Page 11: DrawingML Subject: Tables

Table Definition Structure

Page 12: DrawingML Subject: Tables

Cell Properties

These properties act as overrides to what may already be defined in a table style.

Page 13: DrawingML Subject: Tables

Table Properties

These properties act as overrides to what may already be defined in a table style.

Page 14: DrawingML Subject: Tables

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

Page 15: DrawingML Subject: Tables

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

Page 16: DrawingML Subject: Tables

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

Page 17: DrawingML Subject: Tables

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

Page 18: DrawingML Subject: Tables

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.

Page 19: DrawingML Subject: Tables

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.