OfficeIMO

API Reference

Command

Add-OfficeWordDropDownList

Namespace PSWriteOffice
Inputs
OfficeIMO.Word.WordParagraph
Outputs
OfficeIMO.Word.WordDropDownList

Adds a dropdown list content control to the current paragraph.

Remarks

Adds a dropdown list content control to the current paragraph.

Examples

Add a dropdown list.


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

Creates a dropdown list control with the supplied items.

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-OfficeWordDropDownList [-Alias <String>] -Items <String[]> [-Paragraph <WordParagraph>] [-PassThru] [-Tag <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

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

Outputs

OfficeIMO.Word.WordDropDownList