Word.TableOfContentsMarkEntryOptions interface
Specifies the options for inserting a Table of Contents Entry (TC) field.
Remarks
Properties
| entry | If provided, specifies the text that appears in a table of contents or table of figures. To indicate a subentry, include the main entry text and the subentry text, separated by a colon (":") (e.g., "Introduction:The Product"). When the |
| entry |
If provided, specifies the AutoText entry name that includes text for the table of figures, or table of contents. When this property is used, the |
| level | If provided, specifies the level for the entry in a table of contents or table of figures and should be a value from 1 to 9. |
| table |
If provided, specifies a one-letter identifier for a table of contents or table of figures (e.g., "i" for an "illustration"). |
Property Details
entry
If provided, specifies the text that appears in a table of contents or table of figures. To indicate a subentry, include the main entry text and the subentry text, separated by a colon (":") (e.g., "Introduction:The Product"). When the entryAutoText property is set, this property is ignored.
entry?: string;
Property Value
string
Remarks
entryAutoText
If provided, specifies the AutoText entry name that includes text for the table of figures, or table of contents. When this property is used, the entry property is ignored.
entryAutoText?: string;
Property Value
string
Remarks
level
If provided, specifies the level for the entry in a table of contents or table of figures and should be a value from 1 to 9.
level?: number;
Property Value
number
Remarks
tableId
If provided, specifies a one-letter identifier for a table of contents or table of figures (e.g., "i" for an "illustration").
tableId?: string;
Property Value
string