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

Set-OfficePowerPointSlideLayout

Aliases: PptSlideLayout
Namespace PSWriteOffice
Aliases
PptSlideLayout
Inputs
OfficeIMO.PowerPoint.PowerPointSlide
Outputs
OfficeIMO.PowerPoint.PowerPointSlide

Changes the layout used by a slide.

Remarks

Changes the layout used by a slide.

Examples

Authored help example

Switch a slide to a layout by name.

PS>


Get-OfficePowerPointSlide -Presentation $ppt -Index 0 | Set-OfficePowerPointSlideLayout -LayoutName 'Title and Content'
        

Updates the slide to use the requested layout.

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

Set-OfficePowerPointSlideLayout -Layout <Int32> [-Master <Int32>] [-PassThru] [-Slide <PowerPointSlide>] [<CommonParameters>]
#
Parameter set: Index

Parameters

Layout Int32 requiredposition: namedpipeline: False
Layout index to use.
Master Int32 optionalposition: namedpipeline: False
Slide master index to use.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the object created or changed by the command.
Slide PowerPointSlide optionalposition: namedpipeline: True (ByValue)
Slide to update (optional inside a slide DSL scope).

Outputs

OfficeIMO.PowerPoint.PowerPointSlide

Set-OfficePowerPointSlideLayout [-CaseSensitive] -LayoutName <String> [-Master <Int32>] [-PassThru] [-Slide <PowerPointSlide>] [<CommonParameters>]
#
Parameter set: Name

Parameters

CaseSensitive SwitchParameter optionalposition: namedpipeline: False
Use case-sensitive matching for layout names.
LayoutName String requiredposition: namedpipeline: False
Layout name to use.
Master Int32 optionalposition: namedpipeline: False
Slide master index to use.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the object created or changed by the command.
Slide PowerPointSlide optionalposition: namedpipeline: True (ByValue)
Slide to update (optional inside a slide DSL scope).

Outputs

OfficeIMO.PowerPoint.PowerPointSlide

Set-OfficePowerPointSlideLayout -LayoutType <Title> [-Master <Int32>] [-PassThru] [-Slide <PowerPointSlide>] [<CommonParameters>]
#
Parameter set: Type

Parameters

LayoutType PowerPointSlideLayoutType requiredposition: namedpipeline: Falsevalues: 36
Layout type to use.
Possible values: Title, Text, TwoColumnText, Table, TextAndChart, ChartAndText, Diagram, Chart, TextAndClipArt, ClipArtAndText, TitleOnly, Blank, TextAndObject, ObjectAndText, ObjectOnly, Object, TextAndMedia, MediaAndText, ObjectOverText, TextOverObject, TextAndTwoObjects, TwoObjectsAndText, TwoObjectsOverText, FourObjects, VerticalText, ClipArtAndVerticalText, VerticalTitleAndText, VerticalTitleAndTextOverChart, TwoObjects, ObjectAndTwoObjects, TwoObjectsAndObject, Custom, SectionHeader, TwoTextAndTwoObjects, ObjectText, PictureText
Master Int32 optionalposition: namedpipeline: False
Slide master index to use.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the object created or changed by the command.
Slide PowerPointSlide optionalposition: namedpipeline: True (ByValue)
Slide to update (optional inside a slide DSL scope).

Outputs

OfficeIMO.PowerPoint.PowerPointSlide