DEV Community

Cover image for How to Create and Update a Table of Contents in Word Documents Using the .NET Word Library
Arun for Syncfusion, Inc.

Posted on

How to Create and Update a Table of Contents in Word Documents Using the .NET Word Library

Learn how to create and update a table of contents in a Word document using the Syncfusion Word Library. This video demonstrates how to create a table of contents using default heading styles and custom styles, edit a table of contents, and customize its entries.

Word Library is a native .NET Word library that developers can use to create, read, write, and convert Microsoft Word documents. A non-UI component, it provides a full-fledged document instance model similar to the Microsoft Office COM libraries to iterate with the document elements explicitly and perform necessary manipulation.

Word Library’s powerful conversion APIs make it easy to convert Word documents to PDF, HTML, RTF, ODT, and EPUB formats. The control generates reports like invoices and payrolls faster by performing mail merge in a batch process.

Word Library, also known as DocIO in the code, allows users to navigate to a bookmark in a document and insert, edit, retrieve, or delete its content. This framework also supports replacing bookmarked content with text, part of a document, or an entire document. This library will find text or text patterns using regular expressions and then highlight or format them.

You can also replace the text or text patterns with a different piece of text, part of a document, or an entire document. You can create fillable forms with legacy form fields and content controls in Word documents. Then, fill out the form and extract data from the form fields effortlessly.

Explore our tutorial videos: https://www.syncfusion.com/tutorial-videos

Example project: https://github.com/SyncfusionExamples/how-to-create-and-update-a-table-of-contents-in-word-documents-using-the-.net-word-library

Top comments (0)