Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Set-OfficePowerPointPlaceholderText

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

Sets text in a slide placeholder.

Syntax

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

Examples

Set the title placeholder text.

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.

Parameters

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

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.