Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePowerPointPlaceholder

Module
PSWriteOffice
Inputs
PSWriteOffice.Foundation.PowerPointSlideSelector
Outputs
OfficeIMO.PowerPoint.PowerPointTextBox OfficeIMO.PowerPoint.PowerPointLayoutPlaceholderInfo

Gets native slide placeholders or metadata from the selected slide's template layout.

Syntax

Get-OfficePowerPointPlaceholder
[-Document <PowerPointDocument>]
[-Index <UInt32>]
[-Slide <PowerPointSlideSelector>]
[-Type <PowerPointPlaceholderType>]
[<CommonParameters>]
#
Parameter set: Slide
Get-OfficePowerPointPlaceholder
[-Document <PowerPointDocument>]
-FromLayout
[-Index <UInt32>]
[-Slide <PowerPointSlideSelector>]
[-Type <PowerPointPlaceholderType>]
[<CommonParameters>]
#
Parameter set: Layout

Examples

Read the first slide's title placeholder.

Get-OfficePowerPointPlaceholder -Document $deck -Slide 1 -Type Title

Inspect template positions before filling a slide.

$slide | Get-OfficePowerPointPlaceholder -FromLayout

Parameters

-Document PowerPointDocument optional
Gets or sets the document for numeric selection or explicit membership checks.
-Index UInt32 optional
Gets or sets the native placeholder index to include.
-Slide PowerPointSlideSelector optionalpipeline: True (ByValue)
Gets or sets a native slide or one-based position; omission uses the current slide block.
-Type PowerPointPlaceholderType optional
Gets or sets the placeholder type to include.
Possible values: Title, Body, CenteredTitle, SubTitle, DateAndTime, SlideNumber, Footer, Header, Object, Chart, Table, ClipArt, Diagram, Media, SlideImage, Picture
-FromLayout SwitchParameter requiredsets: Layout
Gets or sets whether to return layout metadata instead of live text boxes.

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.