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