Trusted by the world’s leading companies
Overview
The Syncfusion .NET Word Library (DocIO) is a feature-rich and high-performance tool that allows users to create and update the table of contents (TOC) in a Word document using C# without relying on Microsoft Word or interop dependencies. Build the TOC based on headings with custom styles. Include page numbers and hyperlinks for easy navigation.
Create and update TOCs in Word documents using C#
This example code shows how to update a table of contents in a Word document using the Syncfusion .NET Word Library with just a few lines of code in C#.
Key features of tables of contents
Customize TOC entries
Customize the visual appearance of TOC entries, accommodating up to 9 levels of entries.
Custom styles
Define and use custom styles in the TOC, mapping them to specific heading levels instead of relying solely on default heading styles.
Format TOC
Modify the text of TOC entries, change tab leaders, customize heading levels, manage page numbers, add hyperlinks, and more.
Table of figures
Generate a table of captions for figures, tables, charts, and other numbered items using SEQ fields. Additionally, you can create a table of captions without labels and numbers.
Table of contents references
Discover resources from our blog and knowledge base to enhance your efficiency in using tables of contents in Word documents.
Knowledge base
How to change the tab leader of a table of contents in a Word document using C#
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Product Updates
Technical Support
Frequently Asked Questions
Is it possible to customize the appearance and formatting of the table of contents using the .NET Word Library?
Yes, you can customize the entries of a TOC in a Word document using the .NET Word Library.
Can I generate multiple TOCs in a single Word document using the .NET Word Library?
Yes, you can insert multiple TOCs in a single Word document using the .NET Word Library.
Do the hyperlinks in the TOC work in PDFs converted from Word documents using the .NET Word Library?
Yes, similar to Word documents, you can navigate to the corresponding headings from the TOC in the PDF converted from a Word document.
Does the .NET Word Library support adding hyperlinks in the TOC for navigation within the document?
Yes, the .NET Word Library generates TOCs with hyperlinks and page numbers.
Does the .NET Word Library provide support for creating hierarchical TOCs with multiple levels of headings?
Yes, the .NET Word Library supports creating hierarchical TOCs with multiple levels of headings.
How can I integrate the create and update TOC functionality into my application?
You can access it through the Syncfusion.DocIORenderer.Net.Core NuGet package. Detailed code samples and video tutorials are available in the documentation.
Our Customers Love Us
Want to create, View, and edit Word documents in C# or VB.NET?
No credit card required.
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.



