Cmdlet
Get-OfficeWordSection
Gets sections from a Word document.
Syntax
Examples
Inspect the first section before section-level reads.
$section = Get-OfficeWordSection -Path .\Report.docx -Index 0
$section |
Get-OfficeWordParagraph |
Select-Object -First 5 -Property TextGets a specific section by zero-based index and pipes it to another thin Word reader.
Parameters
- -Index Int32[]
- Optional 0-based section index filter.
- -Path String
- Path to the document.
- -Document WordDocument
- Document to inspect.
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.