Represents a Table of Contents in a WordprocessingML document.
TableOfContents creates an auto-generated list of document headings with page numbers. It uses a TOC field code to generate entries.
Reference: http://officeopenxml.com/WPtableOfContents.php
<xsd:complexType name="CT_SdtBlock"> <xsd:sequence> <xsd:element name="sdtPr" type="CT_SdtPr" minOccurs="0"/> <xsd:element name="sdtEndPr" type="CT_SdtEndPr" minOccurs="0"/> <xsd:element name="sdtContent" type="CT_SdtContentBlock" minOccurs="0"/> </xsd:sequence></xsd:complexType> Copy
<xsd:complexType name="CT_SdtBlock"> <xsd:sequence> <xsd:element name="sdtPr" type="CT_SdtPr" minOccurs="0"/> <xsd:element name="sdtEndPr" type="CT_SdtEndPr" minOccurs="0"/> <xsd:element name="sdtContent" type="CT_SdtContentBlock" minOccurs="0"/> </xsd:sequence></xsd:complexType>
new TableOfContents("Contents", { hyperlink: true, headingStyleRange: "1-3",}); Copy
new TableOfContents("Contents", { hyperlink: true, headingStyleRange: "1-3",});
Optional
Readonly
Marker property identifying this as a FileChild
Do not use this method. It is only used internally by the library. It will be removed in a future version.
Represents a Table of Contents in a WordprocessingML document.
TableOfContents creates an auto-generated list of document headings with page numbers. It uses a TOC field code to generate entries.
Reference: http://officeopenxml.com/WPtableOfContents.php
XSD Schema
Example