Cmdlet
Add-OfficePowerPointSection
Adds a section to a PowerPoint presentation.
Syntax
Add-OfficePowerPointSection
-Name <String>
[-PassThru]
[-Presentation <PowerPointPresentation>]
[-StartSlideIndex <Int32>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Creates a new section starting at the requested slide index or at the current slide inside the DSL.
Examples
Create a section that starts at slide 3.
New-OfficePowerPoint -Path .\Examples\Documents\PowerPointSections.pptx {
Add-OfficePowerPointSlide -Layout 1 -PassThru | Set-OfficePowerPointSlideTitle -Title 'Overview'
Add-OfficePowerPointSlide -Layout 1 -PassThru | Set-OfficePowerPointSlideTitle -Title 'Results'
Add-OfficePowerPointSection -Name 'Results' -StartSlideIndex 1
}Creates a section named Results starting at the second slide.
Parameters
- -Name String
- Name of the section to add.
- -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -Presentation PowerPointPresentation
- Presentation to update (optional inside DSL).
- -StartSlideIndex Int32
- Zero-based slide index where the section should start.
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.