Edit

Share via


Word.Interfaces.TableOfContentsData interface

An interface describing the data returned by calling tableOfContents.toJSON().

Properties

areBuiltInHeadingStylesUsed

Specifies whether built-in heading styles are used for the table of contents.

areFieldsUsed

Specifies whether Table of Contents Entry (TC) fields are included in the table of contents.

areHyperlinksUsedOnWeb

Specifies whether entries in the table of contents should be formatted as hyperlinks when publishing to the web.

arePageNumbersHiddenOnWeb

Specifies whether the page numbers in the table of contents should be hidden when publishing to the web.

arePageNumbersIncluded

Specifies whether page numbers are included in the table of contents.

arePageNumbersRightAligned

Specifies whether page numbers are aligned with the right margin in the table of contents.

lowerHeadingLevel

Specifies the ending heading level for the table of contents. Must be a value from 1 to 9 and greater than upperHeadingLevel.

tabLeader

Specifies the character between entries and their page numbers in the table of contents.

tableId

Specifies a one-letter identifier from TC fields that's used for the table of contents.

upperHeadingLevel

Specifies the starting heading level for the table of contents. Must be a value from 1 to 9 and smaller than lowerHeadingLevel.

Property Details

areBuiltInHeadingStylesUsed

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

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

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

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

Specifies whether page numbers are included in the table of contents.

arePageNumbersIncluded?: boolean;

Property Value

boolean

Remarks

[ API set: WordApiDesktop 1.4 ]

arePageNumbersRightAligned

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

Specifies the ending heading level for the table of contents. Must be a value from 1 to 9 and greater than upperHeadingLevel.

lowerHeadingLevel?: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.4 ]

tabLeader

Specifies the character between entries and their page numbers in the table of contents.

tabLeader?: Word.TabLeader | "Spaces" | "Dots" | "Dashes" | "Lines" | "Heavy" | "MiddleDot";

Property Value

Word.TabLeader | "Spaces" | "Dots" | "Dashes" | "Lines" | "Heavy" | "MiddleDot"

Remarks

[ API set: WordApiDesktop 1.4 ]

tableId

Specifies a one-letter identifier from TC fields that's used for the table of contents.

tableId?: string;

Property Value

string

Remarks

[ API set: WordApiDesktop 1.4 ]

upperHeadingLevel

Specifies the starting heading level for the table of contents. Must be a value from 1 to 9 and smaller than lowerHeadingLevel.

upperHeadingLevel?: number;

Property Value

number

Remarks

[ API set: WordApiDesktop 1.4 ]