Wordprocessing Tables
Some row properties are specified as exceptions to the table-level properties using the <tblPrEx> element. The <tblPrEx> element contains all table-level properties which are being overridden for the row. This is typically used in legacy documents or where two existing independent tables are merged, in order to prevent the appearance of the second table from being superseded by the first table.
Note that the yellow (FFFF00) <insideH> element causes the top and bottom borders of the row to be yellow rather than the red (FF0000) and blue (0000FF) of the top and bottom.
Elements:
The most commonly used table exceptions are below:
Element | Description | ||||||
---|---|---|---|---|---|---|---|
jc | Specifies the alignment of the row when a table does not have the same width as the document margins: <w:jc w:val="right">.
See <jc> within table row property for details.
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.27.
|
||||||
shd | Specifies the shading for the row up to the table borders, and unlike cell shading, it includes any cell padding: <w:shd w:val="clear" w:color="auto" w:fill="EEECE1"/>. The shading consists of three components: the background color, an optional pattern, and an optional pattern color.
The attributes include (theme-related attributes omitted):
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.31.
|
||||||
tblBorders | Specifies the borders for the row. Note that if the cell spacing is non-zero, there is no border conflict and the row exception border is applied. If the cell spacing is zero, then there is a conflict. Otherwise the cell border is applied.
See Table Borders for details of this element. Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.4.
|
||||||
tblCellMar | Specifies the cell margins for cells in the row. See Table Cell Margins for details of this element. Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.42.
|
||||||
tblCellSpacing | Specifies cell spacing for all cells in the row. It specifies the minimum amount of space after including the width of the table borders. This is superseded by the row cell spacing tblCellSpacing value. See Table Row Properties for details. Note that table-level cell spacing is added outside of the text margins.
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.45.
|
||||||
tblInd | Specifies the indentation to be added before the leading edge of the row (left edge in left-to-right tables): <w:tblInd w:w="2160" w:type="dxa"/>.
The attributes are:
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.52.
|
||||||
tblLayout |
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.54.
|
||||||
tblLook |
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.55.
|
||||||
tblW |
Reference: ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference § 17.4.65.
|