Microsoft Word Suite
171
tab leader
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.
Can be one of the following:
·
tab leader dashes
·
tab leader dots
·
tab leader heavy
·
tab leader lines
·
tab leader middle dot
·
tab leader spaces
table of authorities bookmark
Returns or sets the name of the bookmark from which to collect table of authorities entries.
Read/write.
The table of authorities bookmark property corresponds to the \b switch for a TOA (Table of
Authorities) field.
text object
Returns a text range object that represents the portion of a document that's contained in the
table of authorities object. Read-only.
Class: table of contents
Plural
tables of contents
Elements
heading style
Represents a single table of contents in a document. The tables of contents list includes all the tables
of contents in a document.
Use table of contents index, where index is the index number, to return a single table of contents
object. The index number represents the position of the table of contents in the document. The
following example updates the page numbers of the items in the first table of figures in the active
document.
update page numbers table of contents 1 of active document
To add a table of contents to a document, use the make command. The following example adds a
table of contents at the beginning of the active document. The example builds the table of contents
from all paragraphs styled as either Heading 1, Heading 2, or Heading 3.
set myRange to set range text object of active document start 0 end 0
make new table of contents at active document with properties ¬
{text object:myRange, use fields:false, use heading styles:true, ¬
lower heading level:3, upper heading level:1}