Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Set-OfficePowerPointTheme

Module
PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointDocument
Outputs
OfficeIMO.PowerPoint.PowerPointDocument

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: Document

Examples

Restyle every master and layout with a built-in theme.

Set-OfficePowerPointTheme -Document $deck -Theme Boardroom -AllMasters

Fine-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 optional
Gets or sets whether every master is updated.
-BodyFont String optional
Gets or sets the Latin body font.
-BodyFontComplexScript String optional
Gets or sets the complex script body font.
-BodyFontEastAsian String optional
Gets or sets the East Asian body font.
-ClearMissing SwitchParameter optional
Gets or sets whether unspecified font slots are cleared. Requires at least one font override.
-Colors Hashtable optional
Gets or sets theme slots mapped to OfficeColor values, CSS colors or semantic roles.
-Document PowerPointDocument optionalpipeline: True (ByValue)
Gets or sets an explicit live document; omission uses the enclosing content block.
-HeadingFont String optional
Gets or sets the Latin heading font.
-HeadingFontComplexScript String optional
Gets or sets the complex script heading font.
-HeadingFontEastAsian String optional
Gets or sets the East Asian heading font.
-Master Int32 optional
Gets or sets the one-based master position; defaults to the first.
-Name String optional
Gets or sets the theme name.
-PassThru SwitchParameter optional
Gets or sets whether the updated native document is returned.
-Theme OfficeThemeInput optional
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.