# WordListScope

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordList](/api/word/officeimo-word-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.

### Returned or exposed by 15

- Method [WordListScope.Bold](/api/word/officeimo-word-wordlistscope/#method-bold-boolean)
- Method [WordListScope.Color](/api/word/officeimo-word-wordlistscope/#method-color-nullable-officeimo-officecolor)
- Method [WordListScope.DoubleStrikethrough](/api/word/officeimo-word-wordlistscope/#method-doublestrikethrough-boolean)
- Method [WordListScope.FontFamily](/api/word/officeimo-word-wordlistscope/#method-fontfamily-string)
- Method [WordListScope.FontSize](/api/word/officeimo-word-wordlistscope/#method-fontsize-nullable-officeimo-officelength)
- Method [WordListScope.Italic](/api/word/officeimo-word-wordlistscope/#method-italic-boolean)
- Method [WordListScope.Item](/api/word/officeimo-word-wordlistscope/#method-item-string-int32-officeimo-word-wordparagraph-action-officeimo-word-wordparagraphscope)
- Method [WordListScope.LinkItem](/api/word/officeimo-word-wordlistscope/#method-linkitem-string-uri-boolean-int32-action-officeimo-word-wordparagraphscope)
- Method [WordListScope.ListItem](/api/word/officeimo-word-wordlistscope/#method-listitem-officeimo-word-wordparagraph)
- Method [WordListScope.ListItems](/api/word/officeimo-word-wordlistscope/#method-listitems-collections-generic-ienumerable-officeimo-word-wordparagraph)
- Method [WordListScope.RestartNumberingAfterBreak](/api/word/officeimo-word-wordlistscope/#method-restartnumberingafterbreak-boolean)
- Method [WordListScope.StartNumberingValue](/api/word/officeimo-word-wordlistscope/#method-startnumberingvalue-int32-int32)
- Method [WordListScope.Strikethrough](/api/word/officeimo-word-wordlistscope/#method-strikethrough-boolean)
- Method [WordListScope.TaskItem](/api/word/officeimo-word-wordlistscope/#method-taskitem-string-boolean-int32-action-officeimo-word-wordparagraphscope)
- Method [WordListScope.Underline](/api/word/officeimo-word-wordlistscope/#method-underline-nullable-officeimo-word-wordunderlinestyle)

### Accepted by parameters 5

- Method [WordDocumentScope.List](/api/word/officeimo-word-worddocumentscope/#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope) parameter `configure`
- Method [WordFooterScope.List](/api/word/officeimo-word-wordfooterscope/#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope) parameter `configure`
- Method [WordHeaderScope.List](/api/word/officeimo-word-wordheaderscope/#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope) parameter `configure`
- Method [WordParagraphScope.List](/api/word/officeimo-word-wordparagraphscope/#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope) parameter `configure`
- Method [WordTableCellScope.List](/api/word/officeimo-word-wordtablecellscope/#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordListScope Bold(bool value = true)` [#](#method-bold-boolean)

Sets [WordList.Bold](/api/word/officeimo-word-wordlist/): 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)` [#](#method-color-nullable-officeimo-officecolor)

Sets [WordList.Color](/api/word/officeimo-word-wordlist/): 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)` [#](#method-doublestrikethrough-boolean)

Sets [WordList.DoubleStrikethrough](/api/word/officeimo-word-wordlist/): 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)` [#](#method-fontfamily-string)

Sets [WordList.FontFamily](/api/word/officeimo-word-wordlist/): 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)` [#](#method-fontsize-nullable-officeimo-officelength)

Sets [WordList.FontSize](/api/word/officeimo-word-wordlist/): 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)` [#](#method-italic-boolean)

Sets [WordList.Italic](/api/word/officeimo-word-wordlist/): 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)` [#](#method-item-string-int32-officeimo-word-wordparagraph-action-officeimo-word-wordparagraphscope)

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)` [#](#method-linkitem-string-uri-boolean-int32-action-officeimo-word-wordparagraphscope)

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)` [#](#method-listitem-officeimo-word-wordparagraph)

Adds an item to [WordList.ListItems](/api/word/officeimo-word-wordlist/): 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)` [#](#method-listitems-collections-generic-ienumerable-officeimo-word-wordparagraph)

Adds items to [WordList.ListItems](/api/word/officeimo-word-wordlist/): 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)` [#](#method-restartnumberingafterbreak-boolean)

Sets [WordList.RestartNumberingAfterBreak](/api/word/officeimo-word-wordlist/): 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)` [#](#method-startnumberingvalue-int32-int32)

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)` [#](#method-strikethrough-boolean)

Sets [WordList.Strikethrough](/api/word/officeimo-word-wordlist/): 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)` [#](#method-taskitem-string-boolean-int32-action-officeimo-word-wordparagraphscope)

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)` [#](#method-underline-nullable-officeimo-word-wordunderlinestyle)

Sets [WordList.Underline](/api/word/officeimo-word-wordlist/): Gets or sets the underline style of the numbering symbols.

Parameters

**value OfficeIMO.Word.WordUnderlineStyle? required**

The value.

Returns

`WordListScope` The same scope.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public WordList Model { get; }` [#](#property-model)

The [WordList](/api/word/officeimo-word-wordlist/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:14DBE14889A5360B6DE05BFAE49502546E644426EA74F2B3EA6C87E3E8587614 -->
