Cmdlet
Get-OfficeWordComboBox
Gets combo box content controls from a Word document.
Syntax
Examples
Audit combo box controls in a template.
$controls = Get-OfficeWordComboBox -Path .\Template.docx -Alias 'Owner*'
$controls |
Select-Object -Property Alias, Tag |
Format-Table -AutoSizeFilters combo box content controls so template owners can verify the expected owner fields exist.
Parameters
- -Alias String[]
- Filter by combo box alias (wildcards supported).
- -Path String
- Path to the .docx file.
- -Tag String[]
- Filter by combo box tag (wildcards supported).
- -Document WordDocument
- Word document to read.
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.