Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePowerPointLayout

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

Lists template layouts from all masters, or one selected master.

Syntax

Get-OfficePowerPointLayout
[[-Document] <PowerPointDocument>]
[-Master <Int32>]
[<CommonParameters>]
#
Parameter set: Document

Examples

List layouts in a live deck.

Get-OfficePowerPointLayout -Document $deck

Reuse a returned layout in a designed slide.

New-OfficePowerPoint -Path ./Review.pptx {
    $layout = @(Get-OfficePowerPointLayout -Master 1)[0]
    PowerPointSlide -Title 'Review' -TemplateLayout $layout
}

Parameters

-Document PowerPointDocument optionalposition: 0pipeline: True (ByValue)
Gets or sets the live document; omission uses the enclosing content scope.
-Master Int32 optional
Gets or sets a one-based master position; omission lists all masters.

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.