[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Fields.TocStyleLevel

TocStyleLevel Class

Represents a pair of a style name and its display level for TOC field options.

Inheritance
TocStyleLevel
Namespace: GrapeCity.Documents.Word.Fields
Assembly: DS.Documents.Word.dll
Syntax
public class TocStyleLevel
Public Class TocStyleLevel

Properties

Name Description
Collect

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.

DisplayLevel

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.

IsBuiltIn

Gets a value indicating whether the style is a built-in heading style.

Level

Gets the built-in style outline level.

For custom styles the property value returns null.

Name

Gets style name of paragraphs that should be collected by the TOC field.

Methods

Name Description
ToString()