TableOfContents Object Members
Word Developer Reference |
Represents a single table of contents in a document. The TableOfContents object is a member of the TablesOfContents collection. The TablesOfContents collection includes all the tables of contents in a document.
Methods
Name | Description | |
---|---|---|
Delete | Deletes the specified table of contents. | |
Update | Updates the entries shown in a table of contents. | |
UpdatePageNumbers | Updates the page numbers for items in the specified table of contents. |
Properties
Name | Description | |
---|---|---|
Application | Returns an Application object that represents the Microsoft Word application. | |
Creator | Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long. | |
HeadingStyles | Returns a HeadingStyles object that represents additional styles used to compile a table of contents or table of figures (styles other than the Heading 1 – Heading 9 styles). Read-only. | |
HidePageNumbersInWeb | Returns or sets whether page numbers in a table of contents or a table of figures should be hidden when publishing to the Web. Read/write Boolean. | |
IncludePageNumbers | True if page numbers are included in the table of contents. Read/write Boolean. | |
LowerHeadingLevel | Returns or sets the ending heading level for a table of contents or table of figures. Read/write Long. | |
Parent | Returns an Object that represents the parent object of the specified TableOfContents object. | |
Range | Returns a Range object that represents the portion of a document that is contained within the specified table of contents. | |
RightAlignPageNumbers | True if page numbers are aligned with the right margin in a table of contents. Read/write Boolean. | |
TabLeader | Returns or sets the character between entries and their page numbers in an index, table of authorities, table of contents, or table of figures. Read/write WdTabLeader. | |
TableID | Returns or sets a one-letter identifier that's used to build a table of contents from TOC fields. Read/write String. | |
UpperHeadingLevel | Returns or sets the starting heading level for a table of contents. Read/write Long. | |
UseFields | True if Table of Contents Entry (TC) fields are used to create a table of contents or a table of figures. Read/write Boolean. | |
UseHeadingStyles | True if built-in heading styles are used to create a table of contents. Read/write Boolean. | |
UseHyperlinks | Returns or sets whether entries in a table of contents should be formatted as hyperlinks when publishing to the Web. Read/write Boolean. |