|
|
|
|
|
- Properties specific to docTableOfContents variables
- Miscellaneous
docTableOfContents (Variable type) In french: docTableDesMatières
The docTableOfContents type is used to define all the options to generate a table of contents in a Word Processing document. You can define and change the characteristics of this table of contents using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. doc is Document
...
tdm is docTableOfContents
tdm.WithPageNumber = True
tdm.StylesPerLevel[1] = styleTOCDefault1
tdm.StylesPerLevel[2] = styleTOCDefault2 + CR + "MonStylePerso"
tdm.StylesPerLevel[3] = "MonStylePerso3"
fDébutDoc is docFragment = doc[1 ON 0]
DocInsert(fDébutDoc, tdm)
Properties Properties specific to docTableOfContents variables The following properties can be used to handle a table of contents:
| | | Property name | Type used | Effect |
---|
StylesPerLevel | Array of strings | Used to specify the style(s) to use when generating the corresponding level in the table of contents. If various styles are used, they must be separated by CR (Carriage Return). You can use: - one or more custom styles,
- the constants corresponding to the default styles:
- styleTDMDefault1: Default paragraph style for level 1 of table of contents (Heading 1).
- styleTDMDéfaut2: Default paragraph style for level 2 of table of contents (Title 2).
- styleTDMDefault3: Default paragraph style for level 3 of table of contents (Heading 3).
- styleTDMDéfaut4: Default paragraph style for level 4 of table of contents (Title 4).
- styleTDMDefault5: Default paragraph style for level 5 of table of contents (Heading 5).
- styleTDMDefault6: Default paragraph style for level 6 of table of contents (Heading 6).
- styleTDMDefault7: Default paragraph style for level 7 of table of contents (Heading 7).
- styleTDMDefault8: Default paragraph style for level 8 of table of contents (Heading 8).
- styleTDMDefault9: Default paragraph style for table of contents level 9 (Heading 9).
| WithPageNumber | Boolean | - True if the page number must be displayed on each line of the table of contents,
- False otherwise.
|
Remarks Miscellaneous DocInsert can be used to add a table of contents to the document.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|