Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordTableOfContentFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of 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

Methods

public static TSelf Levels<TSelf>(TSelf wordTableOfContent, int minLevel, int maxLevel) #

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

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

// C# initializer or property                // C# fluent
wordTableOfContent.TextNoContent = value;    wordTableOfContent.TextNoContent(value);
public static TSelf Text<TSelf>(TSelf wordTableOfContent, string value) #

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

// C# initializer or property       // C# fluent
wordTableOfContent.Text = value;    wordTableOfContent.Text(value);
public static TSelf TitleParagraph<TSelf>(TSelf wordTableOfContent, Action<WordParagraph> configure) #

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