Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Get-OfficePowerPointLayout

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

Lists slide layouts available in a presentation.

Syntax

Get-OfficePowerPointLayout
[-Master <Int32>]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Enumerate layouts for the first master.

Get-OfficePowerPointLayout -Presentation $ppt

Returns layout metadata including name, type, and index.

Get the first layout inside the DSL.

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

Uses the current DSL presentation context.

Parameters

-Master Int32 optional
Slide master index.
-Presentation PowerPointPresentation optionalpipeline: True (ByValue)
Presentation to inspect (optional inside DSL).

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.