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-OfficeWordDropDownList

Aliases: WordDropDownList
Module
PSWriteOffice
Aliases
WordDropDownList
Inputs
OfficeIMO.Word.WordParagraph
Outputs
OfficeIMO.Word.WordDropDownList

Adds a dropdown list content control to the current paragraph.

Syntax

Add-OfficeWordDropDownList
[-Alias <String>]
[-Items] <String[]>
[-Paragraph <WordParagraph>]
[-PassThru]
[-Tag <String>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Add a dropdown list.

Add-OfficeWordParagraph { Add-OfficeWordDropDownList -Items 'Low','Medium','High' -Alias 'Priority' }

Creates a dropdown list control with the supplied items.

Parameters

-Alias String optional
Optional alias for the control.
-Items String[] requiredposition: 0
Items to include in the dropdown list.
-Paragraph WordParagraph optionalpipeline: True (ByValue)
Explicit paragraph to receive the control.
-PassThru SwitchParameter optional
Emit the created control.
-Tag String optional
Optional tag for the control.

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.