Table of Contents

Class WordTableStyles

Namespace
DocWright.Formats.Docx
Assembly
DocWright.Formats.Docx.dll

Word's built-in table styles (WQ-0122): the 247 definitions Word writes when one is applied, measured with tools/Probe-WordTableStyles.ps1 and read by the same reader as any document's, and the 105 its Table Design gallery shows, in its order. Apply one with TableFormattingEditingExtensions.ApplyTableStyle.

public static class WordTableStyles
Inheritance
WordTableStyles
Inherited Members

Remarks

A name is Word's (Grid Table 4 Accent 1); the form its user interface shows (Grid Table 4 - Accent 1), a different case and the style id (GridTable4-Accent1) find it too. Each call returns a new copy.

Properties

Gallery

Gets the Table Design gallery's styles, in Word's order: Plain Tables (Table Grid, Grid Table Light, Plain Table 1 to 5), then Grid Tables 1 to 7 and List Tables 1 to 7, each with its six accents.

Names

Gets every built-in table style's name.

Methods

Contains(string)

Whether a name or id is one of Word's built-in table styles.

Create(string)

Word's definition of a built-in table style, as a new style object.

CreateNormalTable()

Word's Normal Table, the style every built-in table style is based on.