Evotec

Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars 144
Forks 12
Open issues 16
PowerShell Gallery downloads 150,904
Release v0.2.0
Language: C# Updated: 2026-04-06

API Reference

Cmdlet

Get-OfficePowerPointLayoutBox

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointLayoutBox

Computes reusable layout boxes for a presentation.

Remarks

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

Examples

Authored help example

Get the content area for a deck.

PS>


Get-OfficePowerPointLayoutBox -Presentation $ppt -MarginCm 1.5
        

Returns a single layout box representing the usable slide area.

Split the slide into two columns.

PS>


Get-OfficePowerPointLayoutBox -Presentation $ppt -ColumnCount 2 -MarginCm 1.5 -GutterCm 1.0
        

Returns one layout box per column.

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.

Syntax

Get-OfficePowerPointLayoutBox [-MarginCm <Double>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: Content

Parameters

MarginCm Double optionalposition: namedpipeline: False
Outer slide margin in centimeters.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to inspect (optional inside DSL).

Outputs

OfficeIMO.PowerPoint.PowerPointLayoutBox

Get-OfficePowerPointLayoutBox -ColumnCount <Int32> [-GutterCm <Double>] [-MarginCm <Double>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: Columns

Parameters

ColumnCount Int32 requiredposition: namedpipeline: False
Number of columns to generate.
GutterCm Double optionalposition: namedpipeline: False
Column or row gutter in centimeters.
MarginCm Double optionalposition: namedpipeline: False
Outer slide margin in centimeters.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to inspect (optional inside DSL).

Outputs

OfficeIMO.PowerPoint.PowerPointLayoutBox

Get-OfficePowerPointLayoutBox [-GutterCm <Double>] [-MarginCm <Double>] [-Presentation <PowerPointPresentation>] -RowCount <Int32> [<CommonParameters>]
#
Parameter set: Rows

Parameters

GutterCm Double optionalposition: namedpipeline: False
Column or row gutter in centimeters.
MarginCm Double optionalposition: namedpipeline: False
Outer slide margin in centimeters.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to inspect (optional inside DSL).
RowCount Int32 requiredposition: namedpipeline: False
Number of rows to generate.

Outputs

OfficeIMO.PowerPoint.PowerPointLayoutBox