OfficeIMO

API Reference

Command

Set-OfficePowerPointLayoutPlaceholderTextMargins

Namespace PSWriteOffice
Inputs
OfficeIMO.PowerPoint.PowerPointPresentation
Outputs
OfficeIMO.PowerPoint.PowerPointTextBox

Sets layout placeholder text margins for a slide layout (points).

Remarks

Sets layout placeholder text margins for a slide layout (points).

Examples

Update layout placeholder text margins.


PS>Set-OfficePowerPointLayoutPlaceholderTextMargins -Presentation $ppt -Master 0 -Layout 1 -PlaceholderType Title -Left 12 -Top 8 -Right 12 -Bottom 8
        

Updates the text margins on the layout placeholder.

Update margins inside the DSL.


PS>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.

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-OfficePowerPointLayoutPlaceholderTextMargins -Bottom <Double> [-CreateIfMissing] [-Index <Nullable`1>] -Layout <Int32> -Left <Double> [-Master <Int32>] [-PassThru] -PlaceholderType <String> [-Presentation <PowerPointPresentation>] -Right <Double> -Top <Double> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Bottom Double requiredposition: namedpipeline: False
Bottom margin in points.
CreateIfMissing SwitchParameter optionalposition: namedpipeline: False
Create the placeholder if it is missing.
Index Nullable`1 optionalposition: namedpipeline: False
Optional placeholder index.
Layout Int32 requiredposition: namedpipeline: False
Layout index within the master.
Left Double requiredposition: namedpipeline: False
Left margin in points.
Master Int32 optionalposition: namedpipeline: False
Slide master index.
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).
Right Double requiredposition: namedpipeline: False
Right margin in points.
Top Double requiredposition: namedpipeline: False
Top margin in points.

Outputs

OfficeIMO.PowerPoint.PowerPointTextBox