# WordTableOfContentFluent

The fluent methods of WordTableOfContent, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordTableOfContent](/api/word/officeimo-word-wordtableofcontent/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- WordTableOfContentFluent

Filter members 

Show inherited

## Methods

`public static TSelf Levels<TSelf>(TSelf wordTableOfContent, int minLevel, int maxLevel)` [#](#method-levels-int32-int32)

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

Type Parameters

**TSelf**

Parameters

**wordTableOfContent TSelf required**

The instance.

**minLevel int required**

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

**maxLevel int required**

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

Returns

`TSelf` The same instance.

`public static TSelf TextNoContent<TSelf>(TSelf wordTableOfContent, 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.

Type Parameters

**TSelf**

Parameters

**wordTableOfContent TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                // C# fluent
wordTableOfContent.TextNoContent = value;    wordTableOfContent.TextNoContent(value);
```

`public static TSelf Text<TSelf>(TSelf wordTableOfContent, 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.

Type Parameters

**TSelf**

Parameters

**wordTableOfContent TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordTableOfContent.Text = value;    wordTableOfContent.Text(value);
```

`public static TSelf TitleParagraph<TSelf>(TSelf wordTableOfContent, 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.

Type Parameters

**TSelf**

Parameters

**wordTableOfContent TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

## 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?`

<!-- PowerForge markdown artifact sha256:BF0CDDC5AF7CDA3F8D0BE0B3A3A58EB0698F3820E524FB57FDB6DF573D54C6F9 -->
