Cmdlet
Set-OfficePowerPointLayoutPlaceholderBounds
Sets layout placeholder bounds for a slide layout.
Syntax
Set-OfficePowerPointLayoutPlaceholderBounds
[-CreateIfMissing]
-Height <Double>
[-Index <UInt32>]
-Layout <Int32>
-Left <Double>
[-Master <Int32>]
[-PassThru]
-PlaceholderType <PowerPointPlaceholderType>
[-Presentation <PowerPointPresentation>]
-Top <Double>
-Width <Double>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Update title placeholder bounds.
Set-OfficePowerPointLayoutPlaceholderBounds -Presentation $ppt -Master 0 -Layout 1 -PlaceholderType Title -Left 40 -Top 20 -Width 500 -Height 120Moves/resizes the Title placeholder on the layout.
Update placeholder bounds inside the DSL.
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.
Parameters
- -CreateIfMissing SwitchParameter
- Create the placeholder if it is missing.
- -Height Double
- Height in points.
- -Index UInt32
- Optional placeholder index.
- -Layout Int32
- Layout index within the master.
- -Left Double
- Left position in points.
- -Master Int32
- Slide master index.
- -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).
- -Top Double
- Top position in points.
- -Width Double
- Width in points.
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.