API Reference
Command
Get-OfficeWordSection
Gets sections from a Word document.
Remarks
Gets sections from a Word document.
Examples
List sections from a file.
PS>Get-OfficeWordSection -Path .\Report.docx
Returns the sections contained 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-OfficeWordSection [-Index <Int32[]>] -InputPath <String> [<CommonParameters>]#Parameter set:
PathParameters
- Index Int32[]
- Optional 0-based section index filter.
- InputPath String
- Path to the document.
Outputs
OfficeIMO.Word.WordSection
Get-OfficeWordSection -Document <WordDocument> [-Index <Int32[]>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document WordDocument
- Document to inspect.
- Index Int32[]
- Optional 0-based section index filter.
Outputs
OfficeIMO.Word.WordSection