API Reference
Command
Get-OfficeWordCheckBox
Gets checkbox content controls from a Word document.
Remarks
Gets checkbox content controls from a Word document.
Examples
List all checkboxes.
PS>Get-OfficeWordCheckBox -Path .\Report.docx
Returns all checkbox content controls in the document.
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-OfficeWordCheckBox [-Alias <String[]>] [-Checked] -InputPath <String> [-Tag <String[]>] [-Unchecked] [<CommonParameters>]#Parameter set:
PathParameters
- Alias String[]
- Filter by checkbox alias (wildcards supported).
- Checked SwitchParameter
- Only return checked checkboxes.
- InputPath String
- Path to the .docx file.
- Tag String[]
- Filter by checkbox tag (wildcards supported).
- Unchecked SwitchParameter
- Only return unchecked checkboxes.
Outputs
OfficeIMO.Word.WordCheckBox
Get-OfficeWordCheckBox [-Alias <String[]>] [-Checked] -Document <WordDocument> [-Tag <String[]>] [-Unchecked] [<CommonParameters>]#Parameter set:
DocumentParameters
- Alias String[]
- Filter by checkbox alias (wildcards supported).
- Checked SwitchParameter
- Only return checked checkboxes.
- Document WordDocument
- Word document to read.
- Tag String[]
- Filter by checkbox tag (wildcards supported).
- Unchecked SwitchParameter
- Only return unchecked checkboxes.
Outputs
OfficeIMO.Word.WordCheckBox