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

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

Sets layout placeholder text style and bullet/numbering settings.

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 <PowerPointNumberingScheme>]
[-PassThru]
-PlaceholderType <PowerPointPlaceholderType>
[-Presentation <PowerPointPresentation>]
[-Style <Title|Subtitle|Body|Caption|Emphasis>]
[-Underline <Boolean>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Apply a title preset style.

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.

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.

Parameters

-Bold Boolean optional
Apply bold formatting.
-BulletChar String optional
Optional bullet character (ignored when -Numbering is supplied).
-Color String optional
Text color. Named colors and hexadecimal values are accepted.
-CreateIfMissing SwitchParameter optional
Create the placeholder if it is missing.
-FontName String optional
Font name (Latin).
-FontSize Int32 optional
Font size in points.
-HighlightColor String optional
Highlight color. Named colors and hexadecimal values are accepted.
-Index UInt32 optional
Optional placeholder index.
-Italic Boolean optional
Apply italic formatting.
-Layout Int32 required
Layout index within the master.
-Level Int32 optional
Paragraph level (0-8) to set before applying style.
-Master Int32 optional
Slide master index.
-Numbering PowerPointNumberingScheme optional
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 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
-Presentation PowerPointPresentation optionalpipeline: True (ByValue)
Presentation to update (optional inside DSL).
-Style String optional
Named style preset (Title, Subtitle, Body, Caption, Emphasis).
Possible values: Title, Subtitle, Body, Caption, Emphasis
-Underline Boolean optional
Apply underline formatting.

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.