Function TWPCustomRtfEdit.CreateTableOfContents(AName:string; BookMarkId:string; Mode:TWPCreateTableOfContentsMode; StopPar:TParagraph; TitleText:string; FirstPar:TParagraph) : Integer

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Returns

The type of the result value is Integer.

Description

Creates or updates the table of contents. The table of contents will be placed in a mergefield named '__TOC__' (WPTOC_FIELDNAME). This name must not be changed!
StyleParent.InputMergeField(WPTOC_FIELDNAME,'TOC Created here ....');