# WordTableOfContentScope

Edits one WordTableOfContent: its fluent methods and keywords, each returning this scope.

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordTableOfContent](/api/word/officeimo-word-wordtableofcontent/): its fluent methods and keywords, each returning this scope.

## Inheritance

- object
- WordTableOfContentScope

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [WordTableOfContentScope.Levels](/api/word/officeimo-word-wordtableofcontentscope/#method-levels-int32-int32)
- Method [WordTableOfContentScope.Text](/api/word/officeimo-word-wordtableofcontentscope/#method-text-string)
- Method [WordTableOfContentScope.TextNoContent](/api/word/officeimo-word-wordtableofcontentscope/#method-textnocontent-string)
- Method [WordTableOfContentScope.TitleParagraph](/api/word/officeimo-word-wordtableofcontentscope/#method-titleparagraph-action-officeimo-word-wordparagraph)

### Accepted by parameters 1

- Method [WordDocumentScope.TableOfContents](/api/word/officeimo-word-worddocumentscope/#method-tableofcontents-officeimo-word-wordtableofcontentsstyle-int32-int32-string-boolean-action-officeimo-word-wordtableofcontentscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordTableOfContentScope Levels(int minLevel, int maxLevel)` [#](#method-levels-int32-int32)

Updates the heading levels included by the TOC field switch (for example: \o "1-5").

Parameters

**minLevel int required**

Minimum heading level to include (1..9).

**maxLevel int required**

Maximum heading level to include (1..9).

Returns

`WordTableOfContentScope` The same scope.

`public WordTableOfContentScope Text(string value)` [#](#method-text-string)

Sets [WordTableOfContent.Text](/api/word/officeimo-word-wordtableofcontent/): Gets or sets the heading text displayed for the table of contents.

Parameters

**value string required**

The value.

Returns

`WordTableOfContentScope` The same scope.

`public WordTableOfContentScope TextNoContent(string value)` [#](#method-textnocontent-string)

Sets [WordTableOfContent.TextNoContent](/api/word/officeimo-word-wordtableofcontent/): Gets or sets the text shown when the document has no entries for the table of contents.

Parameters

**value string required**

The value.

Returns

`WordTableOfContentScope` The same scope.

`public WordTableOfContentScope TitleParagraph(Action<WordParagraph> configure)` [#](#method-titleparagraph-action-officeimo-word-wordparagraph)

Configures [WordTableOfContent.TitleParagraph](/api/word/officeimo-word-wordtableofcontent/) in place: Gets the existing title paragraph, or null when this table of contents has no title.

Parameters

**configure System.Action<OfficeIMO.Word.WordParagraph> required**

Configures the value.

Returns

`WordTableOfContentScope` The same scope.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public WordTableOfContent Model { get; }` [#](#property-model)

The [WordTableOfContent](/api/word/officeimo-word-wordtableofcontent/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:8E6B92E57D958E112E50C62ED6038ADA6FFEA40D5CA7B95C070BE33B77495956 -->
