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

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

Sets layout placeholder bounds for a slide layout.

Remarks

Sets layout placeholder bounds for a slide layout.

Examples

Authored help example

Update title placeholder bounds.

PS>


Set-OfficePowerPointLayoutPlaceholderBounds -Presentation $ppt -Master 0 -Layout 1 -PlaceholderType Title -Left 40 -Top 20 -Width 500 -Height 120
        

Moves/resizes the Title placeholder on the layout.

Update placeholder bounds inside the DSL.

PS>


New-OfficePowerPoint -Path .\deck.pptx {
                $layout = Get-OfficePowerPointLayout | Select-Object -First 1
                Set-OfficePowerPointLayoutPlaceholderBounds -Master $layout.MasterIndex -Layout $layout.LayoutIndex -PlaceholderType Title -Left 40 -Top 20 -Width 500 -Height 120
              }
        

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-OfficePowerPointLayoutPlaceholderBounds [-CreateIfMissing] -Height <Double> [-Index <UInt32>] -Layout <Int32> -Left <Double> [-Master <Int32>] [-PassThru] -PlaceholderType <Title> [-Presentation <PowerPointPresentation>] -Top <Double> -Width <Double> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

CreateIfMissing SwitchParameter optionalposition: namedpipeline: False
Create the placeholder if it is missing.
Height Double requiredposition: namedpipeline: False
Height in points.
Index UInt32 optionalposition: namedpipeline: False
Optional placeholder index.
Layout Int32 requiredposition: namedpipeline: False
Layout index within the master.
Left Double requiredposition: namedpipeline: False
Left position in points.
Master Int32 optionalposition: namedpipeline: False
Slide master index.
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).
Top Double requiredposition: namedpipeline: False
Top position in points.
Width Double requiredposition: namedpipeline: False
Width in points.

Outputs

OfficeIMO.PowerPoint.PowerPointTextBox