# Get-OfficeWordShape

Gets shapes from a Word document, section, or paragraph.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: WordShapes

**Module**

`PSWriteOffice`

**Aliases**

`WordShapes`

**Inputs**

`OfficeIMO.Word.WordDocument` `OfficeIMO.Word.WordParagraph` `OfficeIMO.Word.WordSection`

**Outputs**

`OfficeIMO.Word.WordShape`

**Source**

[GetOfficeWordShapeCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/GetOfficeWordShapeCommand.cs#L22) 

Gets shapes from a Word document, section, or paragraph.

## Syntax

```
Get-OfficeWordShape
[-Path] <String>
[<CommonParameters>]
```

[#](#method-get-officewordshape-string)

Parameter set: `Path`

```
Get-OfficeWordShape
-Document <WordDocument>
[<CommonParameters>]
```

[#](#method-get-officewordshape-worddocument)

Parameter set: `Document`

```
Get-OfficeWordShape
-Section <WordSection>
[<CommonParameters>]
```

[#](#method-get-officewordshape-wordsection)

Parameter set: `Section`

```
Get-OfficeWordShape
-Paragraph <WordParagraph>
[<CommonParameters>]
```

[#](#method-get-officewordshape-wordparagraph)

Parameter set: `Paragraph`

## Examples

### List shapes and metadata.

```powershell
$shapes = Get-OfficeWordShape -Path .\Report.docx
$shapes |
    Select-Object -Property Title, Description, Width, Height, FillColorHex |
    Format-Table -AutoSize
```

Reads OfficeIMO Word shapes from the document so styling and alternate text can be audited.

## Parameters

**-Path String requiredposition: 0aliases: FilePath, InputPathsets: Path**

Path to the document.

**-Document WordDocument requiredpipeline: True (ByValue)sets: Document**

Document to inspect.

**-Section WordSection requiredpipeline: True (ByValue)sets: Section**

Section to inspect.

**-Paragraph WordParagraph requiredpipeline: True (ByValue)sets: Paragraph**

Paragraph 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:951AD2CCC4D79F92E17C17C3DCCDF770937C3249982FEC138E349DB1082341BE -->
