Click or drag to resize

DocxDocumentAddTableOfContents Method (String, String, Int32, DocxDocumentSummaryOrientationEnum, Boolean, Boolean)

Adds the summary.

Namespace:  QsGemBox.Docx
Assembly:  QsGemBox (in QsGemBox.dll) Version: 23.3.0.0 (23.3.0.0)
Syntax
public void AddTableOfContents(
	string title,
	string styleName,
	int position,
	DocxDocumentSummaryOrientationEnum orientation,
	bool addPageBreak,
	bool updateTocOnOpening
)

Parameters

title
Type: SystemString
The title.
styleName
Type: SystemString
Style name to apply to title. If doesn't exists will be used the 'Heading 1' style.
position
Type: SystemInt32
The position. -1 at the end of the document.
orientation
Type: QsGemBox.DocxDocxDocumentSummaryOrientationEnum
Indicates the summary page orientation.
addPageBreak
Type: SystemBoolean
Indicates if add an empty page after the summary.
updateTocOnOpening
Type: SystemBoolean
Indicate if update TOC during opening document or now.
See Also