docx
    Preparing search index...

    Class ThematicBreak

    Represents a thematic break (horizontal rule) in a WordprocessingML document.

    Creates a horizontal line across the paragraph using a bottom border. A paragraph has one w:pBdr, so the paragraph's other borders are written in the same element, with the line in place of their bottom border.

    Reference: http://officeopenxml.com/WPborders.php

    <xsd:complexType name="CT_PBdr">
    <xsd:sequence>
    <xsd:element name="top" type="CT_Border" minOccurs="0"/>
    <xsd:element name="left" type="CT_Border" minOccurs="0"/>
    <xsd:element name="bottom" type="CT_Border" minOccurs="0"/>
    <xsd:element name="right" type="CT_Border" minOccurs="0"/>
    <xsd:element name="between" type="CT_Border" minOccurs="0"/>
    <xsd:element name="bar" type="CT_Border" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    new Paragraph({
    thematicBreak: true,
    children: [new TextRun("Paragraph with horizontal rule below")],
    });

    Hierarchy (View Summary)

    Index
    • get writtenAs(): readonly BaseXmlComponent[] | undefined
      Internal

      The components written in this one's place, one after another, when it can't be written as a single element, such as a run with another run in its children. Undefined when it is written as itself.

      Returns readonly BaseXmlComponent[] | undefined