Cmdlet
Add-OfficeWordListItem
Adds a single list item.
Syntax
Add-OfficeWordListItem
[-Level <Int32>]
[-List <WordList>]
[-PassThru]
[[-Text] <String>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Can be called within Add-OfficeWordList/WordList or against an existing WordList from the pipeline; supports nesting via -Level.
Examples
Add bullet text.
WordList { Add-OfficeWordListItem -Text 'First task' }Creates a bullet with the text “First task”.
Append to an existing list.
Find-OfficeWordList -Document $doc -Text 'Initial review' | Add-OfficeWordListItem -Text 'Final approval'Finds a list in an existing document and appends a new item.
Parameters
- -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.
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.