Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordListScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
sealed

Edits one WordList: its fluent methods and keywords, each returning this scope.

Inheritance

  • object
  • WordListScope

Usage

Explore 20 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 5

Methods

public WordListScope Bold(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordListScope The same scope.
public WordListScope Color(OfficeColor? value) #

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

Parameters

value OfficeIMO.OfficeColor? required
The value.

Returns

WordListScope The same scope.
public WordListScope DoubleStrikethrough(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordListScope The same scope.
public WordListScope FontFamily(string? value) #

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

Parameters

value string? required
The value.

Returns

WordListScope The same scope.
public WordListScope FontSize(OfficeLength? value) #

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

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordListScope The same scope.
public WordListScope Italic(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordListScope The same scope.
public WordListScope Item(string? text, int level = 0, WordParagraph? wordParagraph = null, Action<WordParagraphScope>? configure = null) #

Adds a new item to the list and optionally sets its text.

Parameters

text string? required
Text to assign to the new list item. Pass null to insert an empty item.
level int = 0 optional
The zero-based list level for the item.
wordParagraph OfficeIMO.Word.WordParagraph? = null optional
The paragraph after which the item is inserted. When null the item is appended in the default position.
configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional
Configures the new item through its scope.

Returns

WordListScope The same scope.
public WordListScope LinkItem(string text, Uri destination, bool addStyle = false, int level = 0, Action<WordParagraphScope>? configure = null) #

Adds an item whose text links to the supplied destination.

Parameters

text string required
The value.
destination System.Uri required
The value.
addStyle bool = false optional
The value.
level int = 0 optional
The value.
configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional
Configures the new item through its scope.

Returns

WordListScope The same scope.
public WordListScope ListItem(WordParagraph item) #

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

Parameters

item OfficeIMO.Word.WordParagraph required
The item.

Returns

WordListScope The same scope.
public WordListScope ListItems(IEnumerable<WordParagraph> items) #

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

Parameters

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

Returns

WordListScope The same scope.
public WordListScope RestartNumberingAfterBreak(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordListScope The same scope.
public WordListScope StartNumberingValue(int value, int level = 0) #

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

Parameters

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

Returns

WordListScope The same scope.
public WordListScope Strikethrough(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordListScope The same scope.
public WordListScope TaskItem(string text, bool done = false, int level = 0, Action<WordParagraphScope>? configure = null) #

Adds a task item containing an editable checkbox and text.

Parameters

text string required
The value.
done bool = false optional
The value.
level int = 0 optional
The value.
configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional
Configures the new item through its scope.

Returns

WordListScope The same scope.
public WordListScope Underline(WordUnderlineStyle? value) #

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

Parameters

value OfficeIMO.Word.WordUnderlineStyle? required
The value.

Returns

WordListScope The same scope.

Properties

public WordList Model { get; } #

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