Cmdlet
Get-OfficeWordContentControl
Gets typed native content controls filtered by family, alias, tag, rendered text or checkbox state.
Syntax
Get-OfficeWordContentControl
[-Alias <String[]>]
[-Document <WordDocument>]
[-State <Checked| Unchecked>]
[-Tag <String[]>]
[-Text <String[]>]
[-Type <WordContentControlType[]>]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordContentControl
[-Alias <String[]>]
[-Path] <String[]>
[-State <Checked| Unchecked>]
[-Tag <String[]>]
[-Text <String[]>]
[-Type <WordContentControlType[]>]
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordContentControl
[-Alias <String[]>]
-LiteralPath <String[]>
[-State <Checked| Unchecked>]
[-Tag <String[]>]
[-Text <String[]>]
[-Type <WordContentControlType[]>]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Example 1
Get-OfficeWordContentControl -Alias @('Value')Example 2
Get-OfficeWordContentControl -LiteralPath @('C:\Path')Example 3
Get-OfficeWordContentControl -Path @('C:\Path')Parameters
- -Alias String[]
- Wildcard control aliases.
- -Document WordDocument
- Caller-owned document; omission reads the enclosing Word document.
- -State WordCheckBoxState
- Checked or unchecked; implies the checkbox family.
- Possible values:
Checked,Unchecked - -Tag String[]
- Wildcard control tags.
- -Text String[]
- Wildcard native rendered text.
- -Type WordContentControlType[]
- Control families; omission includes all seven native families.
- Possible values:
Text,CheckBox,ComboBox,DatePicker,DropDownList,Picture,RepeatingSection - -Path String[]
- Word files with FileSystem wildcard expansion.
- -LiteralPath String[]
- Literal Word files, including FileInfo.FullName.
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.