[]
Represents TC field options.
A TC field defines the text and page number for a table of contents (including a table of figures) entry, which is used by a TOC field.
public class TcFieldOptions : BaseFieldOptions, IFieldOptions
Initializes a new instance of the TcFieldOptions class.
public TcFieldOptions(ComplexField field)
field
ComplexFieldThe ComplexField from which to load the options.
Initializes a new instance of the TcFieldOptions class.
public TcFieldOptions(DocumentBase doc)
doc
DocumentBaseThe document whose resources to use in this instance.
Initializes a new instance of the TcFieldOptions class.
public TcFieldOptions(SimpleField field)
field
SimpleFieldThe SimpleField from which to load the options.
Gets the TOC item content.
public InlineRichText Content { get; }
Gets or sets the level to display entry in a TOC field result.
Default value is Level1.
public OutlineLevel DisplayLevel { get; set; }
Thrown when trying to set BodyText.
Gets or sets whether to omit the page number for the entry in a TOC field result.
Default value is false.
public bool OmitPageNumber { get; set; }
Gets or sets the type of entry collected in a particular contents list.
Use a unique list type identifier for each type of list.
If no list type is specified, the entry is listed in a table of contents.
Default value is null.
public char? Type { get; set; }
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()