WordTableOfContentFluent
OfficeIMO.Word
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
- The instance.
- minLevel int
- Minimum heading level to include (1..9).
- maxLevel int
- 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
- The instance.
- value string
- 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
- The instance.
- value string
- 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
- The instance.
- configure System.Action<OfficeIMO.Word.WordParagraph>
- Configures the value.
Returns
TSelf The same instance.