Cmdlet
Set-OfficePowerPointSlideLayout
Changes the layout used by a slide.
Syntax
Set-OfficePowerPointSlideLayout
-Layout <Int32>
[-Master <Int32>]
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]#Parameter set:
IndexSet-OfficePowerPointSlideLayout
[-CaseSensitive]
-LayoutName <String>
[-Master <Int32>]
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]#Parameter set:
NameSet-OfficePowerPointSlideLayout
-LayoutType <PowerPointSlideLayoutType>
[-Master <Int32>]
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]#Parameter set:
TypeExamples
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
- Layout index to use.
- -Master Int32
- Slide master index to use.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Slide PowerPointSlide
- Slide to update (optional inside a slide DSL scope).
- -CaseSensitive SwitchParameter
- Use case-sensitive matching for layout names.
- -LayoutName String
- Layout name to use.
- -LayoutType PowerPointSlideLayoutType
- 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.