# Set-OfficePowerPointShapeLayout

Aligns, distributes, or arranges PowerPoint shapes using OfficeIMO layout helpers.

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: PptArrange, PptShapeLayout

**Module**

`PSWriteOffice`

**Aliases**

`PptArrange` `PptShapeLayout`

**Inputs**

`System.Object`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointShape`

**Source**

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

Aligns, distributes, or arranges PowerPoint shapes using OfficeIMO layout helpers.

## Syntax

```
Set-OfficePowerPointShapeLayout
-Align <PowerPointShapeAlignment>
[-InputObject] <Object>
[-MarginPoints <Double>]
[-PassThru]
[-Slide <PowerPointSlide>]
[-ToSlide]
[<CommonParameters>]
```

[#](#method-set-officepowerpointshapelayout-powerpointshapealignment-object-double-switchparameter-powerpointslide-switchparameter)

Parameter set: `Align`

```
Set-OfficePowerPointShapeLayout
[-Center]
[-CrossAxisAlign <PowerPointShapeAlignment>]
-Distribute <Horizontal|Vertical>
[-InputObject] <Object>
[-MarginPoints <Double>]
[-PassThru]
[-Slide <PowerPointSlide>]
[-SpacingPoints <Double>]
[-ToSlide]
[<CommonParameters>]
```

[#](#method-set-officepowerpointshapelayout-switchparameter-powerpointshapealignment-powerpointshapedistribution-object-double-switchparameter-powerpointslide-double-switchparameter)

Parameter set: `Distribute`

```
Set-OfficePowerPointShapeLayout
[-AutoGrid]
[-Columns <Int32>]
[-Flow <RowMajor|ColumnMajor>]
-Grid
[-GutterXPoints <Double>]
[-GutterYPoints <Double>]
[-InputObject] <Object>
[-MarginPoints <Double>]
[-NoResize]
[-PassThru]
[-Rows <Int32>]
[-Slide <PowerPointSlide>]
[-ToSlide]
[<CommonParameters>]
```

[#](#method-set-officepowerpointshapelayout-switchparameter-int32-powerpointshapegridflow-switchparameter-double-double-object-double-switchparameter-switchparameter-int32-powerpointslide-switchparameter)

Parameter set: `Grid`

## Examples

### Align found shapes.

```powershell
Find-OfficePowerPointShape -Slide $slide -Name 'Kpi.*' |
                Set-OfficePowerPointShapeLayout -Align Top
```

Uses OfficeIMO.PowerPoint to align all matching shapes to the top edge of their selection bounds.

## Parameters

**-Align PowerPointShapeAlignment requiredsets: Align**

Alignment operation.

Possible values: `Left`, `Center`, `Right`, `Top`, `Middle`, `Bottom`

**-InputObject Object requiredposition: 0pipeline: True (ByValue)**

PowerPoint shapes or shape info records from Get-OfficePowerPointShape or Find-OfficePowerPointShape.

**-MarginPoints Double optional**

Use slide content bounds with the supplied margin in points.

**-PassThru SwitchParameter optional**

Emit the arranged shapes.

**-Slide PowerPointSlide optional**

Slide that owns raw PowerPointShape inputs. Shape info records carry their own slide.

**-ToSlide SwitchParameter optional**

Use the full slide bounds instead of the current selection bounds.

**-Center SwitchParameter optionalsets: Distribute**

Center a fixed-spacing distribution within its bounds.

**-CrossAxisAlign PowerPointShapeAlignment optionalsets: Distribute**

Optional cross-axis alignment for even distribution.

Possible values: `Left`, `Center`, `Right`, `Top`, `Middle`, `Bottom`

**-Distribute PowerPointShapeDistribution requiredsets: Distribute**

Distribution operation.

Possible values: `Horizontal`, `Vertical`

**-SpacingPoints Double optionalsets: Distribute**

Fixed spacing between distributed shapes in points.

**-AutoGrid SwitchParameter optionalsets: Grid**

Let OfficeIMO choose the grid dimensions.

**-Columns Int32 optionalsets: Grid**

Grid column count. Omit with AutoGrid.

**-Flow PowerPointShapeGridFlow optionalsets: Grid**

Fill the grid column-by-column instead of row-by-row.

Possible values: `RowMajor`, `ColumnMajor`

**-Grid SwitchParameter requiredsets: Grid**

Arrange shapes in a grid.

**-GutterXPoints Double optionalsets: Grid**

Horizontal grid gutter in points.

**-GutterYPoints Double optionalsets: Grid**

Vertical grid gutter in points.

**-NoResize SwitchParameter optionalsets: Grid**

Keep each shape's current size when arranging in a grid.

**-Rows Int32 optionalsets: Grid**

Grid row count. Omit with AutoGrid.

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