API Reference
Cmdlet
Get-OfficePowerPointTheme
Gets theme information for a PowerPoint presentation master.
Remarks
Gets theme information for a PowerPoint presentation master.
Examples
Example 1: Inspect the default master theme.
PS>
$ppt = New-OfficePowerPoint -FilePath .\Examples\Documents\PowerPointThemeRead.pptx
Set-OfficePowerPointThemeName -Presentation $ppt -Name 'Service Brief'
Set-OfficePowerPointThemeFonts -Presentation $ppt -MajorLatin 'Aptos Display' -MinorLatin 'Aptos'
Get-OfficePowerPointTheme -Presentation $ppt | Select-Object Name, Master
Returns theme information after updating the deck theme metadata.
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
Get-OfficePowerPointTheme [-Master <Int32>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Master Int32
- Slide master index to inspect.
- Presentation PowerPointPresentation
- Presentation to inspect (optional inside New-OfficePowerPoint).
Outputs
PSWriteOffice.Services.PowerPoint.PowerPointThemeInfo: Describes a PowerPoint theme for a single slide master.