Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePowerPointSection

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

Reads sections from a live presentation, optionally matching a PowerShell wildcard pattern.

Syntax

Get-OfficePowerPointSection
[-CaseSensitive]
[[-Document] <PowerPointDocument>]
[-Name <String>]
[<CommonParameters>]
#
Parameter set: Document

Examples

List the sections in a deck.

$deck = Open-OfficePowerPoint -Path ./Review.pptx
Get-OfficePowerPointSection -Document $deck
Close-OfficePowerPoint -Document $deck

Find the appendix section.

$deck | Get-OfficePowerPointSection -Name Appendix

Parameters

-CaseSensitive SwitchParameter optional
Gets or sets whether name matching is case-sensitive.
-Document PowerPointDocument optionalposition: 0pipeline: True (ByValue)
Gets or sets the live document; omission uses its enclosing content block.
-Name String optional
Gets or sets a section name or PowerShell wildcard pattern.

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.