docx
    Preparing search index...

    Function createTabStop

    • Creates a collection of tab stops for a WordprocessingML document.

      Tab stops define the positions where text will align when a tab character is used.

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

      <xsd:complexType name="CT_Tabs">
      <xsd:sequence>
      <xsd:element name="tab" type="CT_TabStop" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      </xsd:complexType>

      Parameters

      Returns XmlComponent

      new Paragraph({
      tabStops: [
      { type: TabStopType.LEFT, position: 2000 },
      { type: TabStopType.CENTER, position: 4000 },
      { type: TabStopType.RIGHT, position: TabStopPosition.MAX, leader: LeaderType.DOT },
      ],
      children: [new TextRun("Text\twith\ttabs")],
      });