Cmdlet
Set-OfficePowerPointTheme
Restyles a deck or changes the selected masters' colors, fonts and theme name.
Syntax
Set-OfficePowerPointTheme
[-AllMasters]
[-BodyFont <String>]
[-BodyFontComplexScript <String>]
[-BodyFontEastAsian <String>]
[-ClearMissing]
[-Colors <Hashtable>]
[-Document <PowerPointDocument>]
[-HeadingFont <String>]
[-HeadingFontComplexScript <String>]
[-HeadingFontEastAsian <String>]
[-Master <Int32>]
[-Name <String>]
[-PassThru]
[-Theme <OfficeThemeInput>]
[<CommonParameters>]#Parameter set:
DocumentExamples
Restyle every master and layout with a built-in theme.
Set-OfficePowerPointTheme -Document $deck -Theme Boardroom -AllMastersFine-tune the first master's theme without restyling its layouts.
Set-OfficePowerPointTheme -Document $deck -Colors @{ Accent1 = '#0F766E' } -HeadingFont 'Segoe UI Semibold' -BodyFont 'Segoe UI' -Name 'Service Brief'Parameters
- -AllMasters SwitchParameter
- Gets or sets whether every master is updated.
- -BodyFont String
- Gets or sets the Latin body font.
- -BodyFontComplexScript String
- Gets or sets the complex script body font.
- -BodyFontEastAsian String
- Gets or sets the East Asian body font.
- -ClearMissing SwitchParameter
- Gets or sets whether unspecified font slots are cleared. Requires at least one font override.
- -Colors Hashtable
- Gets or sets theme slots mapped to OfficeColor values, CSS colors or semantic roles.
- -Document PowerPointDocument
- Gets or sets an explicit live document; omission uses the enclosing content block.
- -HeadingFont String
- Gets or sets the Latin heading font.
- -HeadingFontComplexScript String
- Gets or sets the complex script heading font.
- -HeadingFontEastAsian String
- Gets or sets the East Asian heading font.
- -Master Int32
- Gets or sets the one-based master position; defaults to the first.
- -Name String
- Gets or sets the theme name.
- -PassThru SwitchParameter
- Gets or sets whether the updated native document is returned.
- -Theme OfficeThemeInput
- Gets or sets a built-in theme, OfficeTheme object or document/template path. Applying it restyles masters and layouts before overrides.
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.