Cmdlet
Set-OfficePowerPointSlide
Changes a selected slide's title, template layout, background or transition.
Syntax
Set-OfficePowerPointSlide
[-Background <OfficeColor>]
[-Document <PowerPointDocument>]
[-Master <Int32>]
[-PassThru]
[-Slide] <PowerPointSlideSelector>
[-TemplateLayout <PowerPointLayoutSelector>]
[-Title <String>]
[-Transition <PowerPointSlideTransition>]
[<CommonParameters>]#Parameter set:
DefaultSet-OfficePowerPointSlide
-BackgroundImage <String>
[-Document <PowerPointDocument>]
[-Master <Int32>]
[-PassThru]
[-Slide] <PowerPointSlideSelector>
[-TemplateLayout <PowerPointLayoutSelector>]
[-Title <String>]
[-Transition <PowerPointSlideTransition>]
[<CommonParameters>]#Parameter set:
BackgroundImageSet-OfficePowerPointSlide
-ClearBackground
[-Document <PowerPointDocument>]
[-Master <Int32>]
[-PassThru]
[-Slide] <PowerPointSlideSelector>
[-TemplateLayout <PowerPointLayoutSelector>]
[-Title <String>]
[-Transition <PowerPointSlideTransition>]
[<CommonParameters>]#Parameter set:
ClearBackgroundExamples
Rename the first slide.
Set-OfficePowerPointSlide 1 -Document $deck -Title 'Quarterly review'Apply transitions through the slide pipeline.
Get-OfficePowerPointSlide -Document $deck | Set-OfficePowerPointSlide -Transition FadeSelect a layout from the document's template.
Set-OfficePowerPointSlide 2 -Document $deck -TemplateLayout 'Title and Content'Parameters
- -Background OfficeColor
- Gets or sets the background color, including theme roles and transparent literals.
- -Document PowerPointDocument
- Gets or sets the document for numeric slide and template layout selection; omission uses the enclosing document block.
- -Master Int32
- Gets or sets a one-based template master position; defaults to the first.
- -PassThru SwitchParameter
- Gets or sets whether the original native slide is returned.
- -Slide PowerPointSlideSelector
- Gets or sets a native slide or one-based slide position.
- -TemplateLayout PowerPointLayoutSelector
- Gets or sets a template layout by literal name, one-based position, native type or returned metadata. Supply Document when selecting a template layout.
- -Title String
- Gets or sets the title text; an empty string clears an existing title.
- -Transition PowerPointSlideTransition
- Gets or sets the slide transition.
- Possible values:
Fade,Wipe,BlindsVertical,BlindsHorizontal,CombHorizontal,CombVertical,PushUp,PushDown,PushLeft,PushRight,Cut,Flash,WarpIn,WarpOut,Prism,FerrisLeft,FerrisRight,Morph,Random,CheckerHorizontal,CheckerVertical,CoverLeft,CoverUp,CoverRight,CoverDown,CoverLeftUp,CoverRightUp,CoverLeftDown,CoverRightDown,Dissolve,FadeThroughBlack,UncoverLeft,UncoverUp,UncoverRight,UncoverDown,UncoverLeftUp,UncoverRightUp,UncoverLeftDown,UncoverRightDown,RandomBarsHorizontal,RandomBarsVertical,StripsLeftUp,StripsRightUp,StripsLeftDown,StripsRightDown,WipeUp,WipeRight,WipeDown,BoxOut,BoxIn,SplitHorizontalOut,SplitHorizontalIn,SplitVerticalOut,SplitVerticalIn,Diamond,Plus,Wedge,Newsflash,WheelOneSpoke,WheelTwoSpokes,WheelThreeSpokes,WheelFourSpokes,WheelEightSpokes,Circle,CutThroughBlack - -BackgroundImage String
- Gets or sets a literal local background image path.
- -ClearBackground SwitchParameter
- Gets or sets whether to remove the slide's background override.
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.