API Reference
Cmdlet
Add-OfficeWordListItem
Adds a single list item.
Remarks
Can be called within Add-OfficeWordList/WordList or against an existing WordList from the pipeline; supports nesting via -Level.
Examples
Example 1: Add bullet text.
PS>
WordList { Add-OfficeWordListItem -Text 'First task' }
Creates a bullet with the text “First task”.
Example 2: Append to an existing list.
PS>
Find-OfficeWordList -Document $doc -Text 'Initial review' | Add-OfficeWordListItem -Text 'Final approval'
Finds a list in an existing document and appends a new item.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Add-OfficeWordListItem [-Level <Int32>] [-List <WordList>] [-PassThru] [-Text <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Level Int32
- Zero-based list level.
- List WordList
- Existing list to append to. When omitted, the current DSL list is used.
- PassThru SwitchParameter
- Emit the created WordParagraph.
- Text String
- List item text.