API Reference
Cmdlet
Get-OfficeWordComboBox
Gets combo box content controls from a Word document.
Remarks
Gets combo box content controls from a Word document.
Examples
Example 1: Audit combo box controls in a template.
PS>
$controls = Get-OfficeWordComboBox -Path .\Template.docx -Alias 'Owner*'
$controls |
Select-Object -Property Alias, Tag |
Format-Table -AutoSize
Filters combo box content controls so template owners can verify the expected owner fields exist.
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
Get-OfficeWordComboBox [-Alias <String[]>] -InputPath <String> [-Tag <String[]>] [<CommonParameters>]#Parameter set:
PathParameters
- Alias String[]
- Filter by combo box alias (wildcards supported).
- InputPath String
- Path to the .docx file.
- Tag String[]
- Filter by combo box tag (wildcards supported).
Outputs
OfficeIMO.Word.WordComboBox
Get-OfficeWordComboBox [-Alias <String[]>] -Document <WordDocument> [-Tag <String[]>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Alias String[]
- Filter by combo box alias (wildcards supported).
- Document WordDocument
- Word document to read.
- Tag String[]
- Filter by combo box tag (wildcards supported).
Outputs
OfficeIMO.Word.WordComboBox