| external help file | PSWriteOffice-help.xml |
|---|---|
| Module Name | PSWriteOffice |
| online version | https://github.com/EvotecIT/PSWriteOffice |
| schema | 2.0.0 |
Gets sections from a Word document.
Get-OfficeWordSection [-InputPath] <string> [-Index <int[]>] [<CommonParameters>]Get-OfficeWordSection -Document <WordDocument> [-Index <int[]>] [<CommonParameters>]Gets sections from a Word document.
PS>Get-OfficeWordSection -Path .\Report.docxReturns the sections contained in the document.
Document to inspect.
Type: WordDocument
Parameter Sets: Document
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueOptional 0-based section index filter.
Type: Int32[]
Parameter Sets: Path, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePath to the document.
Type: String
Parameter Sets: Path
Aliases: FilePath, Path
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
OfficeIMO.Word.WordDocument
OfficeIMO.Word.WordSection
- None