API Reference

Cmdlet

Get-OfficeWordCheckBox

Aliases: WordCheckBoxes
Namespace PSWriteOffice
Aliases
WordCheckBoxes
Inputs
OfficeIMO.Word.WordDocument
Outputs
OfficeIMO.Word.WordCheckBox

Gets checkbox content controls from a Word document.

Remarks

Gets checkbox content controls from a Word document.

Examples

Authored help example

Example 1: Review unchecked approval boxes.

PS>


$openItems = Get-OfficeWordCheckBox -Path .\Report.docx -Tag 'approval-*' -Unchecked
            $openItems |
                Select-Object -Property Alias, Tag, IsChecked |
                Format-Table -AutoSize
        

Finds unchecked approval checkboxes by tag so a review workflow can show what is still pending.

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: Path

Parameters

Alias String[] optionalposition: namedpipeline: False
Filter by checkbox alias (wildcards supported).
Checked SwitchParameter optionalposition: namedpipeline: False
Only return checked checkboxes.
InputPath String requiredposition: 0pipeline: Falsealiases: FilePath, Path
Path to the .docx file.
Tag String[] optionalposition: namedpipeline: False
Filter by checkbox tag (wildcards supported).
Unchecked SwitchParameter optionalposition: namedpipeline: False
Only return unchecked checkboxes.

Outputs

OfficeIMO.Word.WordCheckBox

Get-OfficeWordCheckBox [-Alias <String[]>] [-Checked] -Document <WordDocument> [-Tag <String[]>] [-Unchecked] [<CommonParameters>]
#
Parameter set: Document

Parameters

Alias String[] optionalposition: namedpipeline: False
Filter by checkbox alias (wildcards supported).
Checked SwitchParameter optionalposition: namedpipeline: False
Only return checked checkboxes.
Document WordDocument requiredposition: namedpipeline: True (ByValue)
Word document to read.
Tag String[] optionalposition: namedpipeline: False
Filter by checkbox tag (wildcards supported).
Unchecked SwitchParameter optionalposition: namedpipeline: False
Only return unchecked checkboxes.

Outputs

OfficeIMO.Word.WordCheckBox