API Reference
Command
Set-OfficePowerPointBackground
Sets the slide background color or image.
Remarks
Sets the slide background color or image.
Examples
Apply a solid background color.
PS>Get-OfficePowerPointSlide -Presentation $ppt -Index 0 | Set-OfficePowerPointBackground -Color '#F4F7FB'
Applies a solid color fill to the slide background.
Apply a background image.
PS>Set-OfficePowerPointBackground -Slide $slide -ImagePath '.\hero.png'
Uses the provided image as the slide background.
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-OfficePowerPointBackground -Color <String> [-Slide <PowerPointSlide>] [<CommonParameters>]#Parameter set:
ColorParameters
- Color String
- Background color (hex or named color).
- Slide PowerPointSlide
- Slide to update (optional inside a slide DSL scope).
Outputs
OfficeIMO.PowerPoint.PowerPointSlide
Set-OfficePowerPointBackground -ImagePath <String> [-Slide <PowerPointSlide>] [<CommonParameters>]#Parameter set:
ImageParameters
- ImagePath String
- Path to a background image file.
- Slide PowerPointSlide
- Slide to update (optional inside a slide DSL scope).
Outputs
OfficeIMO.PowerPoint.PowerPointSlide
Set-OfficePowerPointBackground -Clear [-Slide <PowerPointSlide>] [<CommonParameters>]#Parameter set:
ClearParameters
- Clear SwitchParameter
- Clears any explicit background color or image.
- Slide PowerPointSlide
- Slide to update (optional inside a slide DSL scope).
Outputs
OfficeIMO.PowerPoint.PowerPointSlide