TableOfContents Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a single table of contents in a document.
public interface class TableOfContents
[System.Runtime.InteropServices.Guid("00020913-0000-0000-C000-000000000046")]
public interface TableOfContents
type TableOfContents = interface
Public Interface TableOfContents
- Attributes
Remarks
The TableOfContents object is a member of the TableOfContents collection. The TablesOfContents collection includes all the tables of contents in a document.
Use TablesOfContents(index
), where index
is the index number, to return a single TableOfContents object. The index number represents the position of the table of contents in the document.
Use the Add(Range, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method to add a table of contents to a document.
Properties
Application |
Returns a 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. |
HeadingStyles |
Returns a HeadingStyles object that represents additional styles used to compile a table of contents (styles other than the Heading 1 – Heading 9 styles). |
HidePageNumbersInWeb |
Returns or sets whether page numbers in a table of contents should be hidden when publishing to the Web. |
IncludePageNumbers |
True if page numbers are included in the table of contents. |
LowerHeadingLevel |
Returns or sets the ending heading level for a table of contents. |
Parent |
Returns an object that represents the parent object of the specified object. |
Range |
Returns a Range object that represents the portion of a document that's contained in the specified object. |
RightAlignPageNumbers |
True if page numbers are aligned with the right margin in a table of contents. |
TabLeader |
Returns or sets the character between entries and their page numbers in a table of contents. |
TableID |
Returns or sets a one-letter identifier that's used to build a table of contents from TOC fields. |
UpperHeadingLevel |
Returns or sets the starting heading level for a table of contents. |
UseFields |
True if Table of Contents Entry (TC) fields are used to create a table of contents. |
UseHeadingStyles |
True if built-in heading styles are used to create a table of contents. |
UseHyperlinks |
Returns or sets whether entries in a table of contents should be formatted as hyperlinks when publishing to the Web. |
Methods
Delete() |
Deletes the specified object. |
Update() |
Updates the entries shown in the specified table of contents. |
UpdatePageNumbers() |
Updates the page numbers for items in the specified table of contents. |