DocumentID: ECMA-376/Part4/2.4.38 Title: ECMA-376, Part4: 2.4.38 tblBorders (Table Borders) Extracted-From: ECMA-376 Office Open XML File Formats, 1st Edition / December 2006 Warning: Coverted to HTML format by a script known to have bugs
This element specifies the set of borders for the edges of the current table, using the six border types defined by its child elements.
If the cell spacing for any row is non-zero as specified using the tblCellSpacing element (§2.4.41; §2.4.42; §2.4.43), then there is no border conflict and the table border (or table-level exception border, if one is specified) shall be displayed.
If the cell spacing is zero, then there is a conflict [Example: Between the left border of all cells in the first column and the left border of the table. end example], which shall be resolved as follows:
If this element is omitted, then this table shall have the borders specified by the associated table style. If no borders are specified in the style hierarchy, then this table shall not have any table borders.
[Example: Consider a table with no associated table style, which defines a set of table borders via direct formatting as follows:
These table borders are specified using the following WordprocessingML:
<w:tbl>
<w:tblPr>
<w:tblW w:w="0" w:type="auto"/>
<w:tblBorders>
<w:top w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
<w:left w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
<w:bottom w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
<w:right w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
<w:insideH w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
<w:insideV w:val="single" w:sz="4" w:space="0" w:color="000000" w:themeColor="text1"/>
</w:tblBorders>
...
</w:tblPr>
...
</w:tbl>
The tblBorders element specifies the set of table borders applied to the current table. end example]
|
Parent Elements |
|
tblPr (§2.7.5.3); tblPr (§2.7.5.4); tblPr (§2.4.55); tblPr (§2.4.56) |
|
Child Elements |
Subclause |
|---|---|
|
bottom (Table Bottom Border) |
|
|
insideH (Table Inside Horizontal Edges Border) |
|
|
insideV (Table Inside Vertical Edges Border) |
|
|
left (Table Left Border) |
|
|
right (Table Right Border) |
|
|
top (Table Top Border) |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_TblBorders">
<sequence>
<element name="top" type="CT_Border" minOccurs="0"/>
<element name="left" type="CT_Border" minOccurs="0"/>
<element name="bottom" type="CT_Border" minOccurs="0"/>
<element name="right" type="CT_Border" minOccurs="0"/>
<element name="insideH" type="CT_Border" minOccurs="0"/>
<element name="insideV" type="CT_Border" minOccurs="0"/>
</sequence>
</complexType>