Word .NET > Tutorial > Create Table of Contents and set styles

The example shows you how to create simple Table of Contents and set paragraph styles on Table of Contents entries. If you open document in Microsoft Word and want to update page numbers then press F9. See pictures below how document look like when you open it and press F9.

C# example
VB example

Need help? Ask our developers: