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

Set-OfficePowerPointSlideLayout

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

Changes the layout used by a slide.

Syntax

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

Examples

Switch a slide to a layout by name.

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

Updates the slide to use the requested layout.

Parameters

-Layout Int32 requiredsets: Index
Layout index to use.
-Master Int32 optional
Slide master index to use.
-PassThru SwitchParameter optional
Emit the object created or changed by the command.
-Slide PowerPointSlide optionalpipeline: True (ByValue)
Slide to update (optional inside a slide DSL scope).
-CaseSensitive SwitchParameter optionalsets: Name
Use case-sensitive matching for layout names.
-LayoutName String requiredsets: Name
Layout name to use.
-LayoutType PowerPointSlideLayoutType requiredsets: Type
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

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.