w:tblPr (Table Properties)
Contains all formatting properties that apply to the entire table.
Parent elements
Child elements
Description
w:tblPr is the table properties container, grouping all table-level formatting properties. It is defined in ECMA-376 Part 1 §17.4.60.
w:tblPr is always the first child of w:tbl. It contains child elements such as w:tblStyle (style reference), w:tblW (width), w:tblBorders (borders), w:tblCellMar (default cell margins), w:tblLook (conditional format flags), and others.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
| (none) | — | — | Properties are expressed exclusively through child elements. |
Examples
<w:tblPr>
<w:tblStyle w:val="TableGrid"/>
<w:tblW w:w="9638" w:type="dxa"/>
</w:tblPr>
new TableProperties(
new TableStyle { Val = "TableGrid" },
new TableWidth { Width = "9638", Type = TableWidthUnitValues.Dxa });