Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Set-OfficePowerPointPlaceholderText

Aliases: PptPlaceholderText
Namespace PSWriteOffice
Aliases
PptPlaceholderText
Inputs
OfficeIMO.PowerPoint.PowerPointSlide
Outputs
OfficeIMO.PowerPoint.PowerPointTextBox

Sets text in a slide placeholder.

Remarks

Sets text in a slide placeholder.

Examples

Authored help example

Set the title placeholder text.

PS>


New-OfficePowerPoint -Path .\Examples\Documents\PowerPointPlaceholderText.pptx {
                $slide = Add-OfficePowerPointSlide -Layout 1 -PassThru
                Set-OfficePowerPointPlaceholderText -Slide $slide -PlaceholderType Title -Text 'Agenda'
                Set-OfficePowerPointPlaceholderText -Slide $slide -PlaceholderType Body -Text 'Review signals and decisions' -IgnoreMissing
            }
        

Updates placeholder text when the selected layout exposes matching placeholders.

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

Set-OfficePowerPointPlaceholderText [-IgnoreMissing] [-Index <UInt32>] [-PassThru] -PlaceholderType <Title> [-Slide <PowerPointSlide>] -Text <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

IgnoreMissing SwitchParameter optionalposition: namedpipeline: False
Ignore missing placeholders.
Index UInt32 optionalposition: namedpipeline: False
Optional placeholder index.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the placeholder textbox after update.
PlaceholderType PowerPointPlaceholderType requiredposition: namedpipeline: Falsealiases: Typevalues: 16
Placeholder type to target.
Possible values: Title, Body, CenteredTitle, SubTitle, DateAndTime, SlideNumber, Footer, Header, Object, Chart, Table, ClipArt, Diagram, Media, SlideImage, Picture
Slide PowerPointSlide optionalposition: namedpipeline: True (ByValue)
Slide to update (optional inside DSL).
Text String requiredposition: namedpipeline: False
Text to set.

Outputs

OfficeIMO.PowerPoint.PowerPointTextBox