[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Fields.TcFieldOptions

TcFieldOptions Class

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.

Inheritance
TcFieldOptions
Implements
Namespace: GrapeCity.Documents.Word.Fields
Assembly: DS.Documents.Word.dll
Syntax
public class TcFieldOptions : BaseFieldOptions, IFieldOptions
Public Class TcFieldOptions
    Inherits BaseFieldOptions
    Implements IFieldOptions

Constructors

Name Description
TcFieldOptions(ComplexField)

Initializes a new instance of the TcFieldOptions class.

TcFieldOptions(DocumentBase)

Initializes a new instance of the TcFieldOptions class.

TcFieldOptions(SimpleField)

Initializes a new instance of the TcFieldOptions class.

Properties

Name Description
Content

Gets the TOC item content.

DisplayLevel

Gets or sets the level to display entry in a TOC field result.

Default value is Level1.

OmitPageNumber

Gets or sets whether to omit the page number for the entry in a TOC field result.

Default value is false.

Type

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.

Methods

Name Description
Load(ComplexField)

Loads options from a ComplexField.

Load(SimpleField)

Loads options from a SimpleField.

Save(ComplexField)

Saves options to a ComplexField.

Save(SimpleField)

Saves options to a SimpleField.

ToString()