[]
Represents a pair of a style name and its display level for TOC field options.
public class TocStyleLevel
Gets or sets a value indicating whether to collect paragraphs formatted with the style.
The default value is true.
Note that for "Heading 1" built-in style, if both Collect and Collect are false, and all other styles are not marked for collection, then this property returns true regardless of the assigned value.
public bool Collect { get; set; }
Gets or sets the outline level on which to display collected paragraphs in the TOC field result.
The default value is Level1 for custom styles, and the corresponding outline level for built-in heading styles.
public OutlineLevel DisplayLevel { get; set; }
Thrown when trying to assign BodyText.
Gets a value indicating whether the style is a built-in heading style.
public bool IsBuiltIn { get; }
Gets the built-in style outline level.
For custom styles the property value returns null.
public OutlineLevel? Level { get; }
Gets style name of paragraphs that should be collected by the TOC field.
public string Name { get; }
public override string ToString()