Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Add-OfficeWordList

Aliases: WordList
Module
PSWriteOffice
Aliases
WordList
Inputs
None

Starts a list inside the current section or paragraph anchor.

Syntax

Add-OfficeWordList
[[-Content] <ScriptBlock>]
[-PassThru]
[[-Style] <WordListStyle>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Creates a temporary anchor paragraph, spawns an OfficeIMO list, and runs child WordListItem commands.

Examples

Numbered checklist.

Add-OfficeWordList -Style 'Numbered' { Add-OfficeWordListItem -Text 'Plan'; Add-OfficeWordListItem -Text 'Execute' }

Creates a numbered list with two steps.

Parameters

-Content ScriptBlock optionalposition: 0
Scriptblock executed within the list scope.
-PassThru SwitchParameter optional
Emit the object created or changed by the command.
-Style WordListStyle optionalposition: 1aliases: Type
Built-in list style or custom numbering scheme.
Possible values: Bulleted, ArticleSections, Headings111, HeadingIA1, Chapters, BulletedChars, Heading1ai, Headings111Shifted, LowerLetterWithBracket, LowerLetterWithDot, UpperLetterWithDot, UpperLetterWithBracket, Custom, Numbered

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.