Cmdlet
Set-OfficePowerPointPlaceholderText
Sets text in a slide placeholder.
Syntax
Set-OfficePowerPointPlaceholderText
[-IgnoreMissing]
[-Index <UInt32>]
[-PassThru]
-PlaceholderType <PowerPointPlaceholderType>
[-Slide <PowerPointSlide>]
-Text <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
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
- Ignore missing placeholders.
- -Index UInt32
- Optional placeholder index.
- -PassThru SwitchParameter
- Emit the placeholder textbox after update.
- -PlaceholderType PowerPointPlaceholderType
- Placeholder type to target.
- Possible values:
Title,Body,CenteredTitle,SubTitle,DateAndTime,SlideNumber,Footer,Header,Object,Chart,Table,ClipArt,Diagram,Media,SlideImage,Picture - -Slide PowerPointSlide
- Slide to update (optional inside DSL).
- -Text String
- 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.