Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

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.

Get the first layout inside the DSL.

PS>


New-OfficePowerPoint -Path .\deck.pptx { $layout = @(Get-OfficePowerPointLayout)[0] }
        

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