docx
    Preparing search index...

    Class Border

    Represents paragraph borders in a WordprocessingML document.

    The pBdr element specifies borders that surround the paragraph.

    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({
    border: {
    top: { style: BorderStyle.SINGLE, size: 6, color: "FF0000" },
    bottom: { style: BorderStyle.SINGLE, size: 6, color: "FF0000" },
    },
    children: [new TextRun("Paragraph with top and bottom borders")],
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Methods