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-OfficePowerPointLayoutPlaceholderTextStyle

Aliases: PptLayoutPlaceholderTextStyle
Namespace PSWriteOffice
Aliases
PptLayoutPlaceholderTextStyle
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointTextBox

Sets layout placeholder text style and bullet/numbering settings.

Remarks

Sets layout placeholder text style and bullet/numbering settings.

Examples

Authored help example

Apply a title preset style.

PS>


Set-OfficePowerPointLayoutPlaceholderTextStyle -Presentation $ppt -Master 0 -Layout 1 -PlaceholderType Title -Style Title
        

Applies the Title preset to the layout placeholder.

Apply a style inside the DSL.

PS>


New-OfficePowerPoint -Path .\deck.pptx {
                $layout = Get-OfficePowerPointLayout | Select-Object -First 1
                Set-OfficePowerPointLayoutPlaceholderTextStyle -Master $layout.MasterIndex -Layout $layout.LayoutIndex -PlaceholderType Title -Style Title -FontSize 36 -Bold $true
              }
        

Uses the DSL context to resolve the presentation.

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-OfficePowerPointLayoutPlaceholderTextStyle [-Bold <Boolean>] [-BulletChar <String>] [-Color <String>] [-CreateIfMissing] [-FontName <String>] [-FontSize <Int32>] [-HighlightColor <String>] [-Index <UInt32>] [-Italic <Boolean>] -Layout <Int32> [-Level <Int32>] [-Master <Int32>] [-Numbering <AlphaLowerCharacterParenBoth>] [-PassThru] -PlaceholderType <Title> [-Presentation <PowerPointPresentation>] [-Style <Title|Subtitle|Body|Caption|Emphasis>] [-Underline <Boolean>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Bold Boolean optionalposition: namedpipeline: False
Apply bold formatting.
BulletChar String optionalposition: namedpipeline: False
Optional bullet character (ignored when -Numbering is supplied).
Color String optionalposition: namedpipeline: False
Text color. Named colors and hexadecimal values are accepted.
CreateIfMissing SwitchParameter optionalposition: namedpipeline: False
Create the placeholder if it is missing.
FontName String optionalposition: namedpipeline: False
Font name (Latin).
FontSize Int32 optionalposition: namedpipeline: False
Font size in points.
HighlightColor String optionalposition: namedpipeline: False
Highlight color. Named colors and hexadecimal values are accepted.
Index UInt32 optionalposition: namedpipeline: False
Optional placeholder index.
Italic Boolean optionalposition: namedpipeline: False
Apply italic formatting.
Layout Int32 requiredposition: namedpipeline: False
Layout index within the master.
Level Int32 optionalposition: namedpipeline: False
Paragraph level (0-8) to set before applying style.
Master Int32 optionalposition: namedpipeline: False
Slide master index.
Numbering PowerPointNumberingScheme optionalposition: namedpipeline: Falsevalues: 41
Optional numbering scheme name (e.g. ArabicPeriod, RomanUpper).
Possible values: AlphaLowerCharacterParenBoth, AlphaUpperCharacterParenBoth, AlphaLowerCharacterParenR, AlphaUpperCharacterParenR, AlphaLowerCharacterPeriod, AlphaUpperCharacterPeriod, ArabicParenBoth, ArabicParenR, ArabicPeriod, ArabicPlain, RomanLowerCharacterParenBoth, RomanUpperCharacterParenBoth, RomanLowerCharacterParenR, RomanUpperCharacterParenR, RomanLowerCharacterPeriod, RomanUpperCharacterPeriod, CircleNumberDoubleBytePlain, CircleNumberWingdingsBlackPlain, CircleNumberWingdingsWhitePlain, ArabicDoubleBytePeriod, ArabicDoubleBytePlain, EastAsianSimplifiedChinesePeriod, EastAsianSimplifiedChinesePlain, EastAsianTraditionalChinesePeriod, EastAsianTraditionalChinesePlain, EastAsianJapaneseDoubleBytePeriod, EastAsianJapaneseKoreanPlain, EastAsianJapaneseKoreanPeriod, Arabic1Minus, Arabic2Minus, Hebrew2Minus, ThaiAlphaPeriod, ThaiAlphaParenthesisRight, ThaiAlphaParenthesisBoth, ThaiNumberPeriod, ThaiNumberParenthesisRight, ThaiNumberParenthesisBoth, HindiAlphaPeriod, HindiNumPeriod, HindiNumberParenthesisRight, HindiAlpha1Period
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
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to update (optional inside DSL).
Style String optionalposition: namedpipeline: Falsevalues: 5
Named style preset (Title, Subtitle, Body, Caption, Emphasis).
Possible values: Title, Subtitle, Body, Caption, Emphasis
Underline Boolean optionalposition: namedpipeline: False
Apply underline formatting.

Outputs

OfficeIMO.PowerPoint.PowerPointTextBox