API Reference

Cmdlet

Get-OfficePowerPointTheme

Aliases: PptTheme
Namespace PSWriteOffice
Aliases
PptTheme
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
PSWriteOffice.Services.PowerPoint.PowerPointThemeInfo

Gets theme information for a PowerPoint presentation master.

Remarks

Gets theme information for a PowerPoint presentation master.

Examples

Authored help example

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 Sets

Parameters

Master Int32 optionalposition: namedpipeline: False
Slide master index to inspect.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to inspect (optional inside New-OfficePowerPoint).

Outputs

PSWriteOffice.Services.PowerPoint.PowerPointThemeInfo: Describes a PowerPoint theme for a single slide master.