Adds a new table of contents to the document at the current text input position.

Add(TableOfContents)

public TableOfContentsCollection.AddResult Add(TableOfContents tableOfContent);
Public Function Add(ByVal tableOfContent As TableOfContents, ByVal createLinks As Boolean) As TableOfContentsCollection.AddResult

Parameters

Parameter Description
tableOfContent Specifies the table of contents to add.

Return Value

The return value specifies whether the new table of contents has successfully been inserted. It can be one of the TableOfContentsCollection.AddResult values.