Cmdlet
Set-OfficePowerPointLayoutPlaceholderTextMargins
Sets layout placeholder text margins for a slide layout (points).
Syntax
Set-OfficePowerPointLayoutPlaceholderTextMargins
-Bottom <Double>
[-CreateIfMissing]
[-Index <UInt32>]
-Layout <Int32>
-Left <Double>
[-Master <Int32>]
[-PassThru]
-PlaceholderType <PowerPointPlaceholderType>
[-Presentation <PowerPointPresentation>]
-Right <Double>
-Top <Double>
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Update layout placeholder text margins.
Set-OfficePowerPointLayoutPlaceholderTextMargins -Presentation $ppt -Master 0 -Layout 1 -PlaceholderType Title -Left 12 -Top 8 -Right 12 -Bottom 8Updates the text margins on the layout placeholder.
Update margins inside the DSL.
New-OfficePowerPoint -Path .\deck.pptx {
$layout = Get-OfficePowerPointLayout | Select-Object -First 1
Set-OfficePowerPointLayoutPlaceholderTextMargins -Master $layout.MasterIndex -Layout $layout.LayoutIndex -PlaceholderType Title -Left 12 -Top 8 -Right 12 -Bottom 8
}Uses the DSL context to resolve the presentation.
Parameters
- -Bottom Double
- Bottom margin in points.
- -CreateIfMissing SwitchParameter
- Create the placeholder if it is missing.
- -Index UInt32
- Optional placeholder index.
- -Layout Int32
- Layout index within the master.
- -Left Double
- Left margin 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).
- -Right Double
- Right margin in points.
- -Top Double
- Top margin 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.