docx
    Preparing search index...

    Function createBorderElement

    • Creates a border element for a WordprocessingML document.

      Used to create border specifications for paragraphs, tables, table cells, and sections. The element name is specified to create different border types (top, bottom, left, right, etc.).

      Parameters

      Returns XmlComponent

      // Create a top border
      createBorderElement("w:top", {
      style: BorderStyle.SINGLE,
      color: "FF0000",
      size: 24,
      space: 1,
      });