# Get-OfficeWordShape

Gets shapes from a document, section or paragraph.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordDocument` `OfficeIMO.Word.WordParagraph` `OfficeIMO.Word.WordSection` `System.String[]`

**Outputs**

`OfficeIMO.Word.WordShape`

**Source**

[GetOfficeWordShapeCommand.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Word/GetOfficeWordShapeCommand.cs#L10) 

Gets shapes from a document, section or paragraph.

## Syntax

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

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

Parameter set: `Document`

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

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

Parameter set: `Path`

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

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

Parameter set: `LiteralPath`

```
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

### Example 1

```powershell
Get-OfficeWordShape -Document 'Value'
```

### Example 2

```powershell
Get-OfficeWordShape -LiteralPath @('C:\Path')
```

### Example 3

```powershell
Get-OfficeWordShape -Paragraph 'Value'
```

## Parameters

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

Document 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.

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

Section for this inspection.

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

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

<!-- PowerForge markdown artifact sha256:8D260FB5695E86C3C68738E02D2FE02A42A8FEC7F4C61950845AD184474B6C8F -->
