Cmdlet
Get-OfficeWordSection
Gets sections of a document.
Syntax
Get-OfficeWordSection
[-Document <WordDocument>]
[-Index <Int32[]>]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordSection
[-Index <Int32[]>]
[-Path] <String[]>
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordSection
[-Index <Int32[]>]
-LiteralPath <String[]>
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Example 1
Get-OfficeWordSection -Document 'Value'Example 2
Get-OfficeWordSection -LiteralPath @('C:\Path')Example 3
Get-OfficeWordSection -Path @('C:\Path')Parameters
- -Document WordDocument
- Document for this inspection.
- -Index Int32[]
- Index for this inspection.
- -Path String[]
- Path for this inspection.
- -LiteralPath String[]
- LiteralPath for this inspection.
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.