docx
    Preparing search index...

    Function createOutlineLevel

    • Creates an outline level element for a paragraph.

      The outline level determines the paragraph's position in the document outline and affects table of contents generation. Level 0 corresponds to Heading 1, level 1 to Heading 2, etc.

      <xsd:complexType name="CT_DecimalNumber">
      <xsd:attribute name="val" type="xsd:integer" use="required"/>
      </xsd:complexType>

      Parameters

      • level: number

      Returns XmlComponent

      // Set outline level to 0 (Heading 1)
      createOutlineLevel(0);

      // Set outline level to 2 (Heading 3)
      createOutlineLevel(2);