Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordListFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of WordList, 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
  • WordListFluent

Methods

public static TSelf Bold<TSelf>(TSelf wordList, bool value = true) #

Sets WordList.Bold: Gets or sets whether the numbering symbols are bold.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordList.Bold = value;           wordList.Bold(value);
public static TSelf Color<TSelf>(TSelf wordList, OfficeColor? value) #

Sets WordList.Color: Gets or sets the color of the numbering symbols. Null clears the directly assigned color.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordList.Color = value;          wordList.Color(value);
public static TSelf DoubleStrikethrough<TSelf>(TSelf wordList, bool value = true) #

Sets WordList.DoubleStrikethrough: Gets or sets whether the numbering symbols have a double strikethrough.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property            // C# fluent
wordList.DoubleStrikethrough = value;    wordList.DoubleStrikethrough(value);
public static TSelf FontFamily<TSelf>(TSelf wordList, string? value) #

Sets WordList.FontFamily: Gets or sets the font family of the numbering symbols.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordList.FontFamily = value;     wordList.FontFamily(value);
public static TSelf FontSize<TSelf>(TSelf wordList, OfficeLength? value) #

Sets WordList.FontSize: Gets or sets the size of numbering symbols as a physical length.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordList.FontSize = value;       wordList.FontSize(value);
public static TSelf Italic<TSelf>(TSelf wordList, bool value = true) #

Sets WordList.Italic: Gets or sets whether the numbering symbols are italicized.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordList.Italic = value;         wordList.Italic(value);
public static TSelf ListItems<TSelf>(TSelf wordList, IEnumerable<WordParagraph> items) #

Adds items to WordList.ListItems: Gets all the list items associated with this WordList.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordParagraph> required
The items, in order.

Returns

TSelf The same instance.
public static TSelf ListItem<TSelf>(TSelf wordList, WordParagraph item) #

Adds an item to WordList.ListItems: Gets all the list items associated with this WordList.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
item OfficeIMO.Word.WordParagraph required
The item.

Returns

TSelf The same instance.
public static TSelf RestartNumberingAfterBreak<TSelf>(TSelf wordList, bool value = true) #

Sets WordList.RestartNumberingAfterBreak: Gets or sets whether numbering restarts after a section break.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                   // C# fluent
wordList.RestartNumberingAfterBreak = value;    wordList.RestartNumberingAfterBreak(value);
public static TSelf StartNumberingValue<TSelf>(TSelf wordList, int value, int level = 0) #

Sets the starting number for the specified list level. Updates both the abstract definition and the list instance override.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value int required
Starting number for the level.
level int = 0 optional
Zero-based list level.

Returns

TSelf The same instance.
public static TSelf Strikethrough<TSelf>(TSelf wordList, bool value = true) #

Sets WordList.Strikethrough: Gets or sets whether the numbering symbols have a strikethrough.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property      // C# fluent
wordList.Strikethrough = value;    wordList.Strikethrough(value);
public static TSelf Underline<TSelf>(TSelf wordList, WordUnderlineStyle? value) #

Sets WordList.Underline: Gets or sets the underline style of the numbering symbols.

Type Parameters

TSelf

Parameters

wordList TSelf required
The instance.
value OfficeIMO.Word.WordUnderlineStyle? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property    // C# fluent
wordList.Underline = value;      wordList.Underline(value);