FieldToc

Overview

FieldToc is a class in Aspose.Words FOSS for .NET. Inherits from: Field, IFieldCodeTokenInfoProvider.

Implements the TOC field.

This class provides 5 methods for working with FieldToc objects in .NET programs. Available methods include: GetFieldCode, Remove, Unlink, Update, UpdatePageNumbers. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: BookmarkName, CaptionlessTableOfFiguresLabel, CustomStyles, DisplayResult, End, EntryIdentifier, and 20 more.

Properties

NameTypeAccessDescription
BookmarkNamestringRead/WriteGets or sets the name of the bookmark that marks the portion of the document used to build the table.
TableOfFiguresLabelstringRead/WriteGets or sets the name of the sequence identifier used when building a table of figures.
CaptionlessTableOfFiguresLabelstringRead/WriteGets or sets the name of the sequence identifier used when building a table of figures that does not include caption’s label and number.
SequenceSeparatorstringRead/WriteGets or sets the character sequence that is used to separate sequence numbers and page numbers.
EntryIdentifierstringRead/WriteGets or sets a string that should match type identifiers of TC fields being included.
InsertHyperlinksboolRead/WriteGets or sets whether to make the table of contents entries hyperlinks.
EntryLevelRangestringRead/WriteGets or sets a range of levels of the table of contents entries to be included.
PageNumberOmittingLevelRangestringRead/WriteGets or sets a range of levels of the table of contents entries from which to omits page numbers.
HeadingLevelRangestringRead/WriteGets or sets a range of heading levels to include.
EntrySeparatorstringRead/WriteGets or sets a sequence of characters that separate an entry and its page number.
PrefixedSequenceIdentifierstringRead/WriteGets or sets the identifier of a sequence for which a prefix should be added to the entry’s page number.
CustomStylesstringRead/WriteGets or sets a list of styles other than the built-in heading styles to include in the table of contents.
UseParagraphOutlineLevelboolRead/WriteGets or sets whether to use the applied paragraph outline level.
PreserveTabsboolRead/WriteGets or sets whether to preserve tab entries within table entries.
PreserveLineBreaksboolRead/WriteGets or sets whether to preserve newline characters within table entries.
HideInWebLayoutboolRead/WriteGets or sets whether to hide tab leader and page numbers in Web layout view.
StartFieldStartReadGets the node that represents the start of the field.
SeparatorFieldSeparatorReadGets the node that represents the field separator.
EndFieldEndReadGets the node that represents the field end.
TypeFieldTypeReadGets the Microsoft Word field type.
ResultstringRead/WriteGets or sets text that is between the field separator and field end.
DisplayResultstringReadGets the text that represents the displayed field result.
IsLockedboolRead/WriteGets or sets whether the field is locked (should not recalculate its result).
IsDirtyboolRead/WriteGets or sets whether the current result of the field is no longer correct (stale) due to other modifications made to the document.
FormatFieldFormatReadGets a FieldFormat object that provides typed access to field’s formatting.
LocaleIdintRead/WriteGets or sets the LCID of the field.

Methods

SignatureDescription
UpdatePageNumbers()Updates the page numbers for items in this table of contents.
GetFieldCode()Returns text between field start and field separator (or field end if there is no separator).
Remove()Removes the field from the document.
Update()Performs the field update.
Unlink()Performs the field unlink.

See Also