# Get-OfficePowerPointLayoutBox

Computes reusable layout boxes for a presentation. 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: PptLayoutBox

**Module**

`PSWriteOffice`

**Aliases**

`PptLayoutBox`

**Inputs**

`OfficeIMO.PowerPoint.PowerPointPresentation`

**Outputs**

`OfficeIMO.PowerPoint.PowerPointLayoutBox`

**Source**

[GetOfficePowerPointLayoutBoxCommand.cs:34](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/PowerPoint/GetOfficePowerPointLayoutBoxCommand.cs#L34) 

Computes reusable layout boxes for a presentation.

## Syntax

```
Get-OfficePowerPointLayoutBox
[-MarginCm <Double>]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
```

[#](#method-get-officepowerpointlayoutbox-double-powerpointpresentation)

Parameter set: `Content`

```
Get-OfficePowerPointLayoutBox
-ColumnCount <Int32>
[-GutterCm <Double>]
[-MarginCm <Double>]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
```

[#](#method-get-officepowerpointlayoutbox-int32-double-double-powerpointpresentation)

Parameter set: `Columns`

```
Get-OfficePowerPointLayoutBox
[-GutterCm <Double>]
[-MarginCm <Double>]
[-Presentation <PowerPointPresentation>]
-RowCount <Int32>
[<CommonParameters>]
```

[#](#method-get-officepowerpointlayoutbox-double-double-powerpointpresentation-int32)

Parameter set: `Rows`

## Description

Returns the content box for a slide or equal column/row boxes derived from the current slide size.

## Examples

### Get the content area for a deck.

```powershell
New-OfficePowerPoint -Path .\Examples\Documents\PowerPointLayoutBox.pptx {
    $slide = Add-OfficePowerPointSlide -Layout 1 -PassThru
    $box = Get-OfficePowerPointLayoutBox -MarginCm 1.5
    Add-OfficePowerPointTextBox -Slide $slide -Text 'Inside the content box' -X ($box.LeftPoints) -Y ($box.TopPoints) -Width ($box.WidthPoints) -Height 60
}
```

Returns a content box and uses it to position slide text.

### Split the slide into two columns.

```powershell
New-OfficePowerPoint -Path .\Examples\Documents\PowerPointColumns.pptx {
    $slide = Add-OfficePowerPointSlide -Layout 1 -PassThru
    $columns = Get-OfficePowerPointLayoutBox -ColumnCount 2 -MarginCm 1.5 -GutterCm 1.0
    Add-OfficePowerPointTextBox -Slide $slide -Text 'Left column' -X ($columns[0].LeftPoints) -Y ($columns[0].TopPoints) -Width ($columns[0].WidthPoints) -Height 80
    Add-OfficePowerPointTextBox -Slide $slide -Text 'Right column' -X ($columns[1].LeftPoints) -Y ($columns[1].TopPoints) -Width ($columns[1].WidthPoints) -Height 80
}
```

Uses two layout boxes to place text in columns.

## Parameters

**-MarginCm Double optional**

Outer slide margin in centimeters.

**-Presentation PowerPointPresentation optionalpipeline: True (ByValue)**

Presentation to inspect (optional inside DSL).

**-ColumnCount Int32 requiredsets: Columns**

Number of columns to generate.

**-GutterCm Double optionalsets: Columns, Rows**

Column or row gutter in centimeters.

**-RowCount Int32 requiredsets: Rows**

Number of rows to generate.

## 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:64FB38C58877E80D10F3900826531679404ADE55A898A35768A66E17174AE3B2 -->
