# Add-OfficePowerPointShape

Adds a basic shape to a slide. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

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 **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: PptShape

**Module**

`PSWriteOffice`

**Aliases**

`PptShape`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointSlide`

**Source**

[AddOfficePowerPointShapeCommand.cs:25](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/AddOfficePowerPointShapeCommand.cs#L25) 

Adds a basic shape to a slide.

## Syntax

```
Add-OfficePowerPointShape
[-FillColor <String>]
[-Height <Double>]
[-Name <String>]
[-OutlineColor <String>]
[-OutlineWidth <Double>]
[-PassThru]
[-ShapeType <OfficePresetShapeType>]
[-Slide <PowerPointSlide>]
[-Width <Double>]
[-X <Double>]
[-Y <Double>]
[<CommonParameters>]
```

[#](#method-add-officepowerpointshape-string-double-string-string-double-switchparameter-officepresetshapetype-powerpointslide-double-double-double)

Parameter set: `All Parameter Sets`

## Description

Creates an auto shape at the requested coordinates and applies optional fill and outline styling.

## Examples

### Create a rectangle highlight.

```powershell
New-OfficePowerPoint -Path .\Examples\Documents\PowerPointShape.pptx {
    $slide = Add-OfficePowerPointSlide -Layout 1 -PassThru
    Add-OfficePowerPointShape -Slide $slide -ShapeType Rectangle -X 60 -Y 120 -Width 220 -Height 90 -FillColor '#DDEEFF' -OutlineColor '#2563EB' -OutlineWidth 1
    Add-OfficePowerPointTextBox -Slide $slide -Text 'Highlighted status' -X 80 -Y 145 -Width 180 -Height 32
}
```

Creates a styled rectangle and overlays a text box.

## Parameters

**-FillColor String optional**

Fill color (hex or named color).

**-Height Double optional**

Shape height in points.

**-Name String optional**

Optional name assigned to the shape.

**-OutlineColor String optional**

Outline color (hex or named color).

**-OutlineWidth Double optional**

Outline width in points.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-ShapeType OfficePresetShapeType optional**

Shape geometry preset name (e.g., Rectangle, Ellipse, Line).

Possible values: `Line`, `LineInverse`, `Triangle`, `RightTriangle`, `Rectangle`, `Diamond`, `Parallelogram`, `Trapezoid`, `NonIsoscelesTrapezoid`, `Pentagon`, `Hexagon`, `Heptagon`, `Octagon`, `Decagon`, `Dodecagon`, `Star4`, `Star5`, `Star6`, `Star7`, `Star8`, `Star10`, `Star12`, `Star16`, `Star24`, `Star32`, `RoundRectangle`, `Round1Rectangle`, `Round2SameRectangle`, `Round2DiagonalRectangle`, `SnipRoundRectangle`, `Snip1Rectangle`, `Snip2SameRectangle`, `Snip2DiagonalRectangle`, `Plaque`, `Ellipse`, `Teardrop`, `HomePlate`, `Chevron`, `PieWedge`, `Pie`, `BlockArc`, `Donut`, `NoSmoking`, `RightArrow`, `LeftArrow`, `UpArrow`, `DownArrow`, `StripedRightArrow`, `NotchedRightArrow`, `BentUpArrow`, `LeftRightArrow`, `UpDownArrow`, `LeftUpArrow`, `LeftRightUpArrow`, `QuadArrow`, `LeftArrowCallout`, `RightArrowCallout`, `UpArrowCallout`, `DownArrowCallout`, `LeftRightArrowCallout`, `UpDownArrowCallout`, `QuadArrowCallout`, `BentArrow`, `UTurnArrow`, `CircularArrow`, `LeftCircularArrow`, `LeftRightCircularArrow`, `CurvedRightArrow`, `CurvedLeftArrow`, `CurvedUpArrow`, `CurvedDownArrow`, `SwooshArrow`, `Cube`, `Can`, `LightningBolt`, `Heart`, `Sun`, `Moon`, `SmileyFace`, `IrregularSeal1`, `IrregularSeal2`, `FoldedCorner`, `Bevel`, `Frame`, `HalfFrame`, `Corner`, `DiagonalStripe`, `Chord`, `Arc`, `LeftBracket`, `RightBracket`, `LeftBrace`, `RightBrace`, `BracketPair`, `BracePair`, `StraightConnector1`, `BentConnector2`, `BentConnector3`, `BentConnector4`, `BentConnector5`, `CurvedConnector2`, `CurvedConnector3`, `CurvedConnector4`, `CurvedConnector5`, `Callout1`, `Callout2`, `Callout3`, `AccentCallout1`, `AccentCallout2`, `AccentCallout3`, `BorderCallout1`, `BorderCallout2`, `BorderCallout3`, `AccentBorderCallout1`, `AccentBorderCallout2`, `AccentBorderCallout3`, `WedgeRectangleCallout`, `WedgeRoundRectangleCallout`, `WedgeEllipseCallout`, `CloudCallout`, `Cloud`, `Ribbon`, `Ribbon2`, `EllipseRibbon`, `EllipseRibbon2`, `LeftRightRibbon`, `VerticalScroll`, `HorizontalScroll`, `Wave`, `DoubleWave`, `Plus`, `FlowChartProcess`, `FlowChartDecision`, `FlowChartInputOutput`, `FlowChartPredefinedProcess`, `FlowChartInternalStorage`, `FlowChartDocument`, `FlowChartMultidocument`, `FlowChartTerminator`, `FlowChartPreparation`, `FlowChartManualInput`, `FlowChartManualOperation`, `FlowChartConnector`, `FlowChartPunchedCard`, `FlowChartPunchedTape`, `FlowChartSummingJunction`, `FlowChartOr`, `FlowChartCollate`, `FlowChartSort`, `FlowChartExtract`, `FlowChartMerge`, `FlowChartOfflineStorage`, `FlowChartOnlineStorage`, `FlowChartMagneticTape`, `FlowChartMagneticDisk`, `FlowChartMagneticDrum`, `FlowChartDisplay`, `FlowChartDelay`, `FlowChartAlternateProcess`, `FlowChartOffpageConnector`, `ActionButtonBlank`, `ActionButtonHome`, `ActionButtonHelp`, `ActionButtonInformation`, `ActionButtonForwardNext`, `ActionButtonBackPrevious`, `ActionButtonEnd`, `ActionButtonBeginning`, `ActionButtonReturn`, `ActionButtonDocument`, `ActionButtonSound`, `ActionButtonMovie`, `Gear6`, `Gear9`, `Funnel`, `MathPlus`, `MathMinus`, `MathMultiply`, `MathDivide`, `MathEqual`, `MathNotEqual`, `CornerTabs`, `SquareTabs`, `PlaqueTabs`, `ChartX`, `ChartStar`, `ChartPlus`

**-Slide PowerPointSlide optionalpipeline: True (ByValue)**

Target slide that will receive the shape (optional inside DSL).

**-Width Double optional**

Shape width in points.

**-X Double optional**

Left offset (in points) from the slide origin.

**-Y Double optional**

Top offset (in points) from the slide origin.

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