[]
Represents TOC field options.
A TOC field builds a table of contents (which can also be a table of figures) using the entries specified by TC fields, their heading levels, and specified styles, and inserts that table at its place in the document. Each table entry is a separate paragraph.
public class TocFieldOptions : BaseFieldOptions, IFieldOptions
Initializes a new instance of the TocFieldOptions class.
public TocFieldOptions(ComplexField field)
field
ComplexFieldThe ComplexField from which to load the options.
Initializes a new instance of the TocFieldOptions class.
public TocFieldOptions(DocumentBase doc)
doc
DocumentBaseThe document whose resources to use in this instance.
Initializes a new instance of the TocFieldOptions class.
public TocFieldOptions(SimpleField field)
field
SimpleFieldThe SimpleField from which to load the options.
Gets or sets the bookmark name that allows to include entries only from the portion of the document marked by this bookmark.
Default value is null.
public string Bookmark { get; set; }
Gets options to format TOC entries in the TOC field result.
public TocEntryFormatting EntryFormatting { get; }
Gets or sets whether the all TOC entries should be on the same level.
Default value is false.
public bool FlatList { get; set; }
Gets options to show page numbers in the TOC field result.
public TocPageNumberOptions PageNumbers { get; }
Gets options to collect SEQ fields paragraphs by the TOC field.
public TocSeqOptions SeqFields { get; }
Gets the collection of styles of paragraphs which should be collected by the TOC field.
public TocStyleLevelCollection Styles { get; }
Gets options to collect TC fields by the TOC field.
public TocTcOptions TcFields { get; }
Loads options from a ComplexField.
public void Load(ComplexField field)
field
ComplexFieldThe ComplexField from which to load the options.
Loads options from a SimpleField.
public void Load(SimpleField field)
field
SimpleFieldThe SimpleField from which to load the options.
Saves options to a ComplexField.
public void Save(ComplexField field)
field
ComplexFieldThe ComplexField where to save the options.
Saves options to a SimpleField.
public void Save(SimpleField field)
field
SimpleFieldThe SimpleField where to save the options.
public override string ToString()