Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Get-OfficeWordParagraph

Namespace PSWriteOffice
Inputs
OfficeIMO.Word.WordDocument OfficeIMO.Word.WordSection
Outputs
OfficeIMO.Word.WordParagraph

Gets paragraphs from a Word document or section.

Remarks

Gets paragraphs from a Word document or section.

Examples

Authored help example

Enumerate paragraphs from a document.

PS>


Get-OfficeWordParagraph -Path .\Report.docx
        

Returns all paragraphs in the document.

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.

Syntax

Get-OfficeWordParagraph -InputPath <String> [<CommonParameters>]
#
Parameter set: Path

Parameters

InputPath String requiredposition: 0pipeline: Falsealiases: FilePath, Path
Path to the document.

Outputs

OfficeIMO.Word.WordParagraph

Get-OfficeWordParagraph -Document <WordDocument> [<CommonParameters>]
#
Parameter set: Document

Parameters

Document WordDocument requiredposition: namedpipeline: True (ByValue)
Document to inspect.

Outputs

OfficeIMO.Word.WordParagraph

Get-OfficeWordParagraph -Section <WordSection> [<CommonParameters>]
#
Parameter set: Section

Parameters

Section WordSection requiredposition: namedpipeline: True (ByValue)
Section to enumerate.

Outputs

OfficeIMO.Word.WordParagraph