OfficeIMO

API Reference

Command

Set-OfficePowerPointLayoutPlaceholderTextStyle

Namespace PSWriteOffice
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

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 Sets

Parameters

Bold Nullable`1 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 in hex (e.g. 1F4E79).
CreateIfMissing SwitchParameter optionalposition: namedpipeline: False
Create the placeholder if it is missing.
FontName String optionalposition: namedpipeline: False
Font name (Latin).
FontSize Nullable`1 optionalposition: namedpipeline: False
Font size in points.
HighlightColor String optionalposition: namedpipeline: False
Highlight color in hex (e.g. FFF59D).
Index Nullable`1 optionalposition: namedpipeline: False
Optional placeholder index.
Italic Nullable`1 optionalposition: namedpipeline: False
Apply italic formatting.
Layout Int32 requiredposition: namedpipeline: False
Layout index within the master.
Level Nullable`1 optionalposition: namedpipeline: False
Paragraph level (0-8) to set before applying style.
Master Int32 optionalposition: namedpipeline: False
Slide master index.
Numbering String optionalposition: namedpipeline: False
Optional numbering scheme name (e.g. ArabicPeriod, RomanUpper).
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the placeholder textbox after update.
PlaceholderType String requiredposition: namedpipeline: Falsealiases: Type
Placeholder type to target.
Presentation PowerPointPresentation optionalposition: namedpipeline: True (ByValue)
Presentation to update (optional inside DSL).
Style String optionalposition: namedpipeline: False
Named style preset (Title, Subtitle, Body, Caption, Emphasis).
Underline Nullable`1 optionalposition: namedpipeline: False
Apply underline formatting.

Outputs

OfficeIMO.PowerPoint.PowerPointTextBox