API Reference
Get-OfficePowerPointLayoutBox
Computes reusable layout boxes for a presentation.
Remarks
Returns the content box for a slide or equal column/row boxes derived from the current slide size.
Examples
Get the content area for a deck.
PS>
Get-OfficePowerPointLayoutBox -Presentation $ppt -MarginCm 1.5
Returns a single layout box representing the usable slide area.
Split the slide into two columns.
PS>
Get-OfficePowerPointLayoutBox -Presentation $ppt -ColumnCount 2 -MarginCm 1.5 -GutterCm 1.0
Returns one layout box per column.
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
Get-OfficePowerPointLayoutBox [-MarginCm <Double>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
ContentParameters
- MarginCm Double
- Outer slide margin in centimeters.
- Presentation PowerPointPresentation
- Presentation to inspect (optional inside DSL).
Outputs
OfficeIMO.PowerPoint.PowerPointLayoutBox
Get-OfficePowerPointLayoutBox -ColumnCount <Int32> [-GutterCm <Double>] [-MarginCm <Double>] [-Presentation <PowerPointPresentation>] [<CommonParameters>]
#
ColumnsParameters
- ColumnCount Int32
- Number of columns to generate.
- GutterCm Double
- Column or row gutter in centimeters.
- MarginCm Double
- Outer slide margin in centimeters.
- Presentation PowerPointPresentation
- Presentation to inspect (optional inside DSL).
Outputs
OfficeIMO.PowerPoint.PowerPointLayoutBox
Get-OfficePowerPointLayoutBox [-GutterCm <Double>] [-MarginCm <Double>] [-Presentation <PowerPointPresentation>] -RowCount <Int32> [<CommonParameters>]
#
RowsParameters
- GutterCm Double
- Column or row gutter in centimeters.
- MarginCm Double
- Outer slide margin in centimeters.
- Presentation PowerPointPresentation
- Presentation to inspect (optional inside DSL).
- RowCount Int32
- Number of rows to generate.
Outputs
OfficeIMO.PowerPoint.PowerPointLayoutBox