Cmdlet
Set-OfficePowerPointBackground
Sets the slide background color or image.
Syntax
Set-OfficePowerPointBackground
[-Color] <String>
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]#Parameter set:
ColorSet-OfficePowerPointBackground
[-ImagePath] <String>
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]#Parameter set:
ImageSet-OfficePowerPointBackground
-Clear
[-PassThru]
[-Slide <PowerPointSlide>]
[<CommonParameters>]#Parameter set:
ClearExamples
Apply a solid background color.
Get-OfficePowerPointSlide -Presentation $ppt -Index 0 | Set-OfficePowerPointBackground -Color '#F4F7FB'Applies a solid color fill to the slide background.
Apply a background image.
Set-OfficePowerPointBackground -Slide $slide -ImagePath '.\hero.png'Uses the provided image as the slide background.
Parameters
- -Color String
- Background color (hex or named color).
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Slide PowerPointSlide
- Slide to update (optional inside a slide DSL scope).
- -ImagePath String
- Path to a background image file.
- -Clear SwitchParameter
- Clears any explicit background color or image.
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.