Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordTableOfContentScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
sealed

Edits one 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.

Accepted by parameters 1

Methods

public WordTableOfContentScope Levels(int minLevel, int maxLevel) #

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) #

Sets WordTableOfContent.Text: 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) #

Sets WordTableOfContent.TextNoContent: 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) #

Configures WordTableOfContent.TitleParagraph 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.

Properties

public WordTableOfContent Model { get; } #

The WordTableOfContent this scope edits, for plain C# inside a lambda.