Edit

Share via


Word.Interfaces.TableOfContentsCollectionLoadOptions interface

Represents a collection of Word.TableOfContents objects in a Word document.

Remarks

[ API set: WordApiDesktop 1.4 ]

Properties

$all

Specifying $all for the load options loads all the scalar properties (such as Range.address) but not the navigational properties (such as Range.format.fill.color).

areBuiltInHeadingStylesUsed

For EACH ITEM in the collection: Specifies whether built-in heading styles are used for the table of contents.

areFieldsUsed

For EACH ITEM in the collection: Specifies whether Table of Contents Entry (TC) fields are included in the table of contents.

areHyperlinksUsedOnWeb

For EACH ITEM in the collection: Specifies whether entries in the table of contents should be formatted as hyperlinks when publishing to the web.

arePageNumbersHiddenOnWeb

For EACH ITEM in the collection: Specifies whether the page numbers in the table of contents should be hidden when publishing to the web.

arePageNumbersIncluded

For EACH ITEM in the collection: Specifies whether page numbers are included in the table of contents.

arePageNumbersRightAligned

For EACH ITEM in the collection: Specifies whether page numbers are aligned with the right margin in the table of contents.

lowerHeadingLevel

For EACH ITEM in the collection: Specifies the ending heading level for the table of contents. Must be a value from 1 to 9 and greater than upperHeadingLevel.

range

For EACH ITEM in the collection: Gets the portion of a document that is this table of contents.

tabLeader

For EACH ITEM in the collection: Specifies the character between entries and their page numbers in the table of contents.

tableId

For EACH ITEM in the collection: Specifies a one-letter identifier from TC fields that's used for the table of contents.

upperHeadingLevel

For EACH ITEM in the collection: Specifies the starting heading level for the table of contents. Must be a value from 1 to 9 and smaller than lowerHeadingLevel.

Property Details

$all

Specifying $all for the load options loads all the scalar properties (such as Range.address) but not the navigational properties (such as Range.format.fill.color).

$all?: boolean;

Property Value

boolean

areBuiltInHeadingStylesUsed

For EACH ITEM in the collection: Specifies whether built-in heading styles are used for the table of contents.

areBuiltInHeadingStylesUsed?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

areFieldsUsed

For EACH ITEM in the collection: Specifies whether Table of Contents Entry (TC) fields are included in the table of contents.

areFieldsUsed?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

areHyperlinksUsedOnWeb

For EACH ITEM in the collection: Specifies whether entries in the table of contents should be formatted as hyperlinks when publishing to the web.

areHyperlinksUsedOnWeb?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

arePageNumbersHiddenOnWeb

For EACH ITEM in the collection: Specifies whether the page numbers in the table of contents should be hidden when publishing to the web.

arePageNumbersHiddenOnWeb?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

arePageNumbersIncluded

For EACH ITEM in the collection: Specifies whether page numbers are included in the table of contents.

arePageNumbersIncluded?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

arePageNumbersRightAligned

For EACH ITEM in the collection: Specifies whether page numbers are aligned with the right margin in the table of contents.

arePageNumbersRightAligned?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

lowerHeadingLevel

For EACH ITEM in the collection: Specifies the ending heading level for the table of contents. Must be a value from 1 to 9 and greater than upperHeadingLevel.

lowerHeadingLevel?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

range

For EACH ITEM in the collection: Gets the portion of a document that is this table of contents.

range?: Word.Interfaces.RangeLoadOptions;

Property Value

Remarks

[ API set: WordApiDesktop 1.4 ]

tabLeader

For EACH ITEM in the collection: Specifies the character between entries and their page numbers in the table of contents.

tabLeader?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

tableId

For EACH ITEM in the collection: Specifies a one-letter identifier from TC fields that's used for the table of contents.

tableId?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

upperHeadingLevel

For EACH ITEM in the collection: Specifies the starting heading level for the table of contents. Must be a value from 1 to 9 and smaller than lowerHeadingLevel.

upperHeadingLevel?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]