w:tblInd (Table Indentation)
Specifies the indentation of the table from the leading text margin.
Parent elements
Description
w:tblInd sets the horizontal offset of the table’s leading edge from the leading text margin (left margin in LTR documents). It shifts the entire table toward the trailing edge.
It is defined in ECMA-376 Part 1 §17.4.51.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:w |
xsd:integer |
Measurement value (see w:type) |
Amount of indentation. |
w:type |
ST_TblWidth |
dxa, pct, auto, nil |
Unit for w:w. |
w:type values
| Value | Description |
|---|---|
dxa |
Twips (twentieths of a point). Most common unit. |
pct |
Fiftieths of a percent of the text width. |
auto |
Automatically determined; w:w is ignored. |
nil |
No indentation. |
Examples
<!-- Indent table 720 twips (0.5 inch) from the left margin -->
<w:tblPr>
<w:tblInd w:w="720" w:type="dxa"/>
</w:tblPr>
using DocumentFormat.OpenXml.Wordprocessing;
var tblPr = new TableProperties(
new TableIndentation { Width = 720, Type = TableWidthUnitValues.Dxa }
);
Notes
w:tblIndapplies to the table as a whole and shifts all rows equally.- Negative values shift the table toward the leading edge (past the text margin), useful for full-bleed designs.
- 1440 twips = 1 inch; 720 twips = 0.5 inch; 567 twips ≈ 1 cm.