[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Fields.TcFieldOptions

TcFieldOptions Class

Represents TC field options.

A TC field defines 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 the specified ComplexField.

Load(SimpleField)

Loads options from the specified SimpleField.

Save(ComplexField)

Saves the current options to the specified ComplexField.

Save(SimpleField)

Saves the current options to the specified SimpleField.

ToString()