WordListScope
OfficeIMO.Word
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.
Returned or exposed by 15
- Method WordListScope.Bold
- Method WordListScope.Color
- Method WordListScope.DoubleStrikethrough
- Method WordListScope.FontFamily
- Method WordListScope.FontSize
- Method WordListScope.Italic
- Method WordListScope.Item
- Method WordListScope.LinkItem
- Method WordListScope.ListItem
- Method WordListScope.ListItems
- Method WordListScope.RestartNumberingAfterBreak
- Method WordListScope.StartNumberingValue
- Method WordListScope.Strikethrough
- Method WordListScope.TaskItem
- Method WordListScope.Underline
Accepted by parameters 5
- Method WordDocumentScope.List
- Method WordFooterScope.List
- Method WordHeaderScope.List
- Method WordParagraphScope.List
- Method WordTableCellScope.List
Methods
public WordListScope Bold(bool value = true) #Sets WordList.Bold: Gets or sets whether the numbering symbols are bold.
Parameters
- value bool = true
- The value; true when omitted.
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?
- The value.
public WordListScope DoubleStrikethrough(bool value = true) #Sets WordList.DoubleStrikethrough: Gets or sets whether the numbering symbols have a double strikethrough.
Parameters
- value bool = true
- The value; true when omitted.
public WordListScope FontFamily(string? value) #Sets WordList.FontFamily: Gets or sets the font family of the numbering symbols.
Parameters
- value string?
- The value.
public WordListScope FontSize(OfficeLength? value) #Sets WordList.FontSize: Gets or sets the size of numbering symbols as a physical length.
Parameters
- value OfficeIMO.OfficeLength?
- The value.
public WordListScope Italic(bool value = true) #Sets WordList.Italic: Gets or sets whether the numbering symbols are italicized.
Parameters
- value bool = true
- The value; true when omitted.
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?
- Text to assign to the new list item. Pass null to insert an empty item.
- level int = 0
- The zero-based list level for the item.
- wordParagraph OfficeIMO.Word.WordParagraph? = null
- 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
- Configures the new item through its 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
- The value.
- destination System.Uri
- The value.
- addStyle bool = false
- The value.
- level int = 0
- The value.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its 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
- The item.
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>
- The items, in order.
public WordListScope RestartNumberingAfterBreak(bool value = true) #Sets WordList.RestartNumberingAfterBreak: Gets or sets whether numbering restarts after a section break.
Parameters
- value bool = true
- The value; true when omitted.
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
- Starting number for the level.
- level int = 0
- Zero-based list level.
public WordListScope Strikethrough(bool value = true) #Sets WordList.Strikethrough: Gets or sets whether the numbering symbols have a strikethrough.
Parameters
- value bool = true
- The value; true when omitted.
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
- The value.
- done bool = false
- The value.
- level int = 0
- The value.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its scope.
public WordListScope Underline(WordUnderlineStyle? value) #Sets WordList.Underline: Gets or sets the underline style of the numbering symbols.
Parameters
- value OfficeIMO.Word.WordUnderlineStyle?
- The value.