10
SpreadsheetML Subject – Styles

Spreadsheet ml subject styles

Embed Size (px)

Citation preview

Page 1: Spreadsheet ml subject   styles

SpreadsheetML

Subject – Styles

Page 2: Spreadsheet ml subject   styles

Styles & Formatting Concepts• Themes

– Affect color, font, & effects on shapes (e.g. chart)– Accent 1, 2, 3; Light & Dark 1, 2; Hyperlink; etc

• Cell Styles– A collection of formatting– Can reference a theme, or– Can be direct, unchanging formatting

• Table & PivotTable Styles– Tables have 13 regions that can be formatted (header row, totals row)– PivotTables have an additional 15 areas– All built-in styles reference themes– Custom styles can reference themes, or not

• Direct Formatting– Color & Font choices can reference a theme, or not– Includes borders, number formats, etc

Page 3: Spreadsheet ml subject   styles

Style & Formatting Example

• Left set of numbers have direct & themed formatting• Table has a table style applied• PivotTable has a table style applied

Page 4: Spreadsheet ml subject   styles

Vary The Theme

• Since all colors are specified as ‘theme’ colors, they change when a different theme is selected

• Cells with non-theme colors specified wouldn’t change color with theme changes.

Page 5: Spreadsheet ml subject   styles

In The Package

Sheet1

• Workbook owns the relationships• Cells reference style definitions in styles.xml• Various formatting elements reference theme

elements in themes.xml

Workbook

Styles Themes

Page 6: Spreadsheet ml subject   styles

Styles.xml

• Number Formats

• Fonts

• Fills

• Borders

• Master Recordsstylesformatting

• Cell Styles

• Diff Master Records

• Custom Table Styles

Page 7: Spreadsheet ml subject   styles

Cell D2

(built-in)

Start

Page 8: Spreadsheet ml subject   styles

Custom Table Style

Page 9: Spreadsheet ml subject   styles

Default & Custom Styles

• Default styles are not saved on disk– Number formats (referenced by integer Id)– Table Styles (referenced by name)– PivotTable Styles (referenced by name)

• Custom styles are saved on disk

Page 10: Spreadsheet ml subject   styles

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.