API Reference
Command
Set-OfficePowerPointLayoutPlaceholderTextStyle
Sets layout placeholder text style and bullet/numbering settings.
Remarks
Sets layout placeholder text style and bullet/numbering settings.
Examples
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 <Nullable`1>] [-BulletChar <String>] [-Color <String>] [-CreateIfMissing] [-FontName <String>] [-FontSize <Nullable`1>] [-HighlightColor <String>] [-Index <Nullable`1>] [-Italic <Nullable`1>] -Layout <Int32> [-Level <Nullable`1>] [-Master <Int32>] [-Numbering <String>] [-PassThru] -PlaceholderType <String> [-Presentation <PowerPointPresentation>] [-Style <String>] [-Underline <Nullable`1>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Bold Nullable`1
- Apply bold formatting.
- BulletChar String
- Optional bullet character (ignored when -Numbering is supplied).
- Color String
- Text color in hex (e.g. 1F4E79).
- CreateIfMissing SwitchParameter
- Create the placeholder if it is missing.
- FontName String
- Font name (Latin).
- FontSize Nullable`1
- Font size in points.
- HighlightColor String
- Highlight color in hex (e.g. FFF59D).
- Index Nullable`1
- Optional placeholder index.
- Italic Nullable`1
- Apply italic formatting.
- Layout Int32
- Layout index within the master.
- Level Nullable`1
- Paragraph level (0-8) to set before applying style.
- Master Int32
- Slide master index.
- Numbering String
- Optional numbering scheme name (e.g. ArabicPeriod, RomanUpper).
- PassThru SwitchParameter
- Emit the placeholder textbox after update.
- PlaceholderType String
- Placeholder type to target.
- Presentation PowerPointPresentation
- Presentation to update (optional inside DSL).
- Style String
- Named style preset (Title, Subtitle, Body, Caption, Emphasis).
- Underline Nullable`1
- Apply underline formatting.
Outputs
OfficeIMO.PowerPoint.PowerPointTextBox