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-OfficePowerPointLayout

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

Lists slide layouts available in a presentation.

Remarks

Lists slide layouts available in a presentation.

Examples

Authored help example

Enumerate layouts for the first master.

PS>


Get-OfficePowerPointLayout -Presentation $ppt
        

Returns layout metadata including name, type, and index.

List layouts inside the DSL.

PS>


New-OfficePowerPoint -Path .\deck.pptx { Get-OfficePowerPointLayout | Select-Object -First 3 }
        

Uses the current DSL presentation context.

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-OfficePowerPointLayout [-Master <Int32>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Master Int32 optionalposition: namedpipeline: False
Slide master index.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to inspect (optional inside DSL).

Outputs

OfficeIMO.PowerPoint.PowerPointSlideLayoutInfo