API Reference
Command
Add-OfficeWordComboBox
Adds a combo box content control to the current paragraph.
Remarks
Adds a combo box content control to the current paragraph.
Examples
Add a combo box with a default value.
PS>Add-OfficeWordParagraph { Add-OfficeWordComboBox -Items 'Red','Blue' -DefaultValue 'Blue' -Alias 'Color' }
Creates a combo box control with the selected default value.
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-OfficeWordComboBox [-Alias <String>] [-DefaultValue <String>] -Items <String[]> [-Paragraph <WordParagraph>] [-PassThru] [-Tag <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Alias String
- Optional alias for the control.
- DefaultValue String
- Optional default value (must match one of the items).
- Items String[]
- Items to include in the combo box.
- Paragraph WordParagraph
- Explicit paragraph to receive the control.
- PassThru SwitchParameter
- Emit the created control.
- Tag String
- Optional tag for the control.
Outputs
OfficeIMO.Word.WordComboBox