API Reference
Cmdlet
Get-OfficePowerPointSection
Gets PowerPoint sections from a presentation.
Remarks
Returns OfficeIMO section metadata so scripts can inspect section names and slide ranges.
Examples
List all sections in a deck.
PS>
$ppt = New-OfficePowerPoint -Path .\Examples\Documents\PowerPointSectionsRead.pptx -NoSave
Add-OfficePowerPointSlide -Presentation $ppt -Layout 1
Add-OfficePowerPointSection -Presentation $ppt -Name 'Appendix' -StartSlideIndex 0
Get-OfficePowerPointSection -Presentation $ppt | Select-Object Name, FirstSlideIndex, SlideCount
$ppt | Close-OfficePowerPoint
Returns section information including section names and slide indexes.
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-OfficePowerPointSection [-CaseSensitive] [-Name <String>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- CaseSensitive SwitchParameter
- Use case-sensitive matching for section names.
- Name String
- Optional section name filter.
- Presentation PowerPointPresentation
- Presentation to inspect (optional inside DSL).
Outputs
OfficeIMO.PowerPoint.PowerPointSectionInfo