<useSingleBorderforContiguousCells>
(Use Simplified Rules For Table Border Conflicts)
This element specifies whether applications should use an alternate simplified algorithm when handling conflicts between adjacent table borders within a table.
Typically, the conflicts between two adjacent table borders are handled using the conflict resolution algorithm defined in §2.4.38 of this Office Open XML Standard. This element, when present with a @val
attribute value of true
(or equivalent), specifies that rather than using that algorithm to determine the outcome of the conflict to two adjacent borders, that the following logic shall be used instead:
Cell borders shall supersede table borders
Cell borders to the right shall supersede cell borders to the left (i.e. the rightmost border wins in conflicts between vertical borders)
Cell borders below shall supersede cell borders above (i.e. the bottommost border wins in conflicts between horizontal borders)
The default presentation would have the border conflicts resolved using the algorithm defined by this Office Open XML Standard, resulting in the following table:
However, if this compatibility setting is turned on:
<w:compat> <w:useSingleBorderForContiguousCells /> </w:compat>
Then the simplified table algorithm above shall be used instead (bottom and right cell borders always win), resulting in the following output:
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies a binary value for the property defined by the parent XML element. A value of A value of example:
<w:… w:val="off"/> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_OnOff">
<attribute name="val" type="ST_OnOff"/>
</complexType>