Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeWordSection

Module
PSWriteOffice
Inputs
OfficeIMO.Word.WordDocument System.String[]
Outputs
OfficeIMO.Word.WordSection

Gets sections of a document.

Syntax

Get-OfficeWordSection
[-Document <WordDocument>]
[-Index <Int32[]>]
[<CommonParameters>]
#
Parameter set: Document
Get-OfficeWordSection
[-Index <Int32[]>]
[-Path] <String[]>
[<CommonParameters>]
#
Parameter set: Path
Get-OfficeWordSection
[-Index <Int32[]>]
-LiteralPath <String[]>
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Example 1

Get-OfficeWordSection -Document 'Value'

Example 2

Get-OfficeWordSection -LiteralPath @('C:\Path')

Example 3

Get-OfficeWordSection -Path @('C:\Path')

Parameters

-Document WordDocument optionalpipeline: True (ByValue)sets: Document
Document for this inspection.
-Index Int32[] optional
Index for this inspection.
-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path
Path for this inspection.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
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.