Cmdlet
Get-OfficeWordParagraph
Gets paragraphs from a document or section, optionally only those matching a pattern.
Syntax
Get-OfficeWordParagraph
[-AsResult]
[-CaseSensitive]
[-Document <WordDocument>]
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordParagraph
[-AsResult]
[-CaseSensitive]
[-Path] <String[]>
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordParagraph
[-AsResult]
[-CaseSensitive]
-LiteralPath <String[]>
[-Pattern <String>]
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
LiteralPathGet-OfficeWordParagraph
[-AsResult]
[-CaseSensitive]
[-Pattern <String>]
-Section <WordSection>
[-SimpleMatch]
[<CommonParameters>]#Parameter set:
SectionExamples
Example 1
Get-OfficeWordParagraph -AsResultExample 2
Get-OfficeWordParagraph -LiteralPath @('C:\Path')Example 3
Get-OfficeWordParagraph -Path @('C:\Path')Parameters
- -AsResult SwitchParameter
- Emit native grouped match details; requires Pattern.
- -CaseSensitive SwitchParameter
- Use case-sensitive matching.
- -Document WordDocument
- Caller-owned document; omission uses the enclosing Word content block.
- -Pattern String
- Optional regular expression, or literal text with SimpleMatch.
- -SimpleMatch SwitchParameter
- Treat Pattern as literal text.
- -Path String[]
- Document paths; supports wildcards.
- -LiteralPath String[]
- Exact document paths, including literal brackets.
- -Section WordSection
- Caller-owned section 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.