Cmdlet
Get-OfficePowerPointLayout
Lists slide layouts available in a presentation.
Syntax
Get-OfficePowerPointLayout
[-Master <Int32>]
[-Presentation <PowerPointPresentation>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Enumerate layouts for the first master.
Get-OfficePowerPointLayout -Presentation $pptReturns layout metadata including name, type, and index.
Get the first layout inside the DSL.
New-OfficePowerPoint -Path .\deck.pptx { $layout = @(Get-OfficePowerPointLayout)[0] }Uses the current DSL presentation context.
Parameters
- -Master Int32
- Slide master index.
- -Presentation PowerPointPresentation
- Presentation to inspect (optional inside DSL).
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.