[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
This element specifies the borders for the parent paragraph. Each child element shall specify a specific type of border (left, right, bottom, top, and between).
If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (i.e. that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then no paragraph borders shall be applied.
[Example: Consider a pairing of paragraphs which have a three point red border around them, and a six point border between them. These paragraphs would each have the following set of paragraph borders:
<w:pBdr>
<w:top w:val="single" w:sz="24" w:space="1" w:color="FF0000" />
<w:left w:val="single" w:sz="24" w:space="4" w:color="FF0000" />
<w:bottom w:val="single" w:sz="24" w:space="1" w:color="FF0000" />
<w:right w:val="single" w:sz="24" w:space="4" w:color="FF0000" />
<w:between w:val="single" w:sz="48" w:space="1" w:color="4D5D2C" />
</w:pBdr>
The resulting paragraphs have identical pBdr values, therefore they would use the top, left, bottom, and right borders around them as a units, and the between border between each other. This matching heuristic is further discussed in the child elements of the pBdr element. end example]
Parent Elements |
pPr (§2.7.4.2); pPr (§2.9.24); pPr (§2.3.1.25); pPr (§2.7.5.1); pPr (§2.3.1.26); pPr (§2.7.7.2) |
Child Elements |
Subclause |
bar (Paragraph Border Between Facing Pages) |
§2.3.1.4 |
between (Paragraph Border Between Identical Paragraphs) |
§2.3.1.5 |
bottom (Paragraph Border Between Identical Paragraphs) |
§2.3.1.7 |
left (Left Paragraph Border) |
§2.3.1.17 |
right (Right Paragraph Border) |
§2.3.1.28 |
top (Paragraph Border Above Identical Paragraphs) |
§2.3.1.42 |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_PBdr">
<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="between" type="CT_Border" minOccurs="0"/>
<element name="bar" type="CT_Border" minOccurs="0"/>
</sequence>
</complexType>