Cmdlet
Get-OfficePowerPointLayout
Lists template layouts from all masters, or one selected master.
Syntax
Get-OfficePowerPointLayout
[[-Document] <PowerPointDocument>]
[-Master <Int32>]
[<CommonParameters>]#Parameter set:
DocumentExamples
List layouts in a live deck.
Get-OfficePowerPointLayout -Document $deckReuse 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
- Gets or sets the live document; omission uses the enclosing content scope.
- -Master Int32
- 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.