# Set-OfficeWordShape

Updates OfficeIMO Word shape metadata, sizing, and colors.

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: WordShapeStyle

**Module**

`PSWriteOffice`

**Aliases**

`WordShapeStyle`

**Inputs**

`OfficeIMO.Word.WordShape`

**Outputs**

`OfficeIMO.Word.WordShape`

**Source**

[SetOfficeWordShapeCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Word/SetOfficeWordShapeCommand.cs#L20) 

Updates OfficeIMO Word shape metadata, sizing, and colors.

## Syntax

```
Set-OfficeWordShape
[-Description <String>]
[-FillColor <String>]
[-Height <Double>]
[-Hidden <Boolean>]
[-Left <Double>]
[-PassThru]
[-Rotation <Double>]
[-Shape] <WordShape>
[-StrokeColor <String>]
[-Stroked <Boolean>]
[-StrokeWidth <Double>]
[-Title <String>]
[-Top <Double>]
[-Width <Double>]
[-ZIndex <Int32>]
[<CommonParameters>]
```

[#](#method-set-officewordshape-string-string-double-boolean-double-switchparameter-double-wordshape-string-boolean-double-string-double-double-int32)

Parameter set: `All Parameter Sets`

## Examples

### Restyle callout shapes in an opened report.

```powershell
$doc = Get-OfficeWord -Path .\Report.docx
$doc |
    Get-OfficeWordShape |
    Set-OfficeWordShape -FillColor '#fff7e6' -StrokeColor '#fa8c16' -StrokeWidth 1.25 -Description 'Highlighted callout'
$doc | Save-OfficeWord -Path .\Report-Shapes.docx
```

Updates OfficeIMO shape objects through the pipeline and persists the document with the standard save command.

## Parameters

**-Description String optional**

Shape alternate text metadata.

**-FillColor String optional**

Fill color. Named colors and hexadecimal values are accepted.

**-Height Double optional**

Shape height in points.

**-Hidden Boolean optional**

Whether the shape is hidden.

**-Left Double optional**

Anchored left position in points.

**-PassThru SwitchParameter optional**

Emit the updated shape.

**-Rotation Double optional**

Shape rotation in degrees.

**-Shape WordShape requiredposition: 0pipeline: True (ByValue)**

Shape to update.

**-StrokeColor String optional**

Stroke color. Named colors and hexadecimal values are accepted.

**-Stroked Boolean optional**

Whether the shape stroke is enabled.

**-StrokeWidth Double optional**

Stroke width in points.

**-Title String optional**

Shape title metadata.

**-Top Double optional**

Anchored top position in points.

**-Width Double optional**

Shape width in points.

**-ZIndex Int32 optional**

Shape z-index.

## 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:A46B720BCBD02C1DC5971260E80BB24AD5C6C948EFEC8A44B1EA284C11963E3B -->
