Cmdlet
Get-OfficeWordText
Gets the text runs of paragraphs, sections or documents.
Syntax
Get-OfficeWordText
[-Document <WordDocument>]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordText
[-Path] <String[]>
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordText
-LiteralPath <String[]>
[<CommonParameters>]#Parameter set:
LiteralPathGet-OfficeWordText
-Section <WordSection>
[<CommonParameters>]#Parameter set:
SectionGet-OfficeWordText
-Paragraph <WordParagraph>
[<CommonParameters>]#Parameter set:
ParagraphExamples
Example 1
Get-OfficeWordText -Document 'Value'Example 2
Get-OfficeWordText -LiteralPath @('C:\Path')Example 3
Get-OfficeWordText -Paragraph 'Value'Parameters
- -Document WordDocument
- Document for this inspection.
- -Path String[]
- Path for this inspection.
- -LiteralPath String[]
- LiteralPath for this inspection.
- -Section WordSection
- Section for this inspection.
- -Paragraph WordParagraph
- Paragraph 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.