docx
    Preparing search index...

    Function createSectionType

    • Creates section type (type) for a document section.

      This element specifies the type of section break, which determines where the new section begins relative to the previous section.

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

      <xsd:complexType name="CT_SectType">
      <xsd:attribute name="val" type="ST_SectionMark"/>
      </xsd:complexType>

      Parameters

      • value: "continuous" | "nextPage" | "nextColumn" | "evenPage" | "oddPage"

      Returns XmlComponent

      // Create a continuous section (no page break)
      createSectionType(SectionType.CONTINUOUS);

      // Create a section that starts on next odd page
      createSectionType(SectionType.ODD_PAGE);