Cmdlet
Get-OfficePowerPointLayoutBox
Computes native content, column or row boxes for manual placement.
Syntax
Get-OfficePowerPointLayoutBox
[-Document <PowerPointDocument>]
[-Margin <OfficeLength>]
[<CommonParameters>]#Parameter set:
ContentGet-OfficePowerPointLayoutBox
-Columns <Int32>
[-Document <PowerPointDocument>]
[-Gutter <OfficeLength>]
[-Margin <OfficeLength>]
[<CommonParameters>]#Parameter set:
ColumnsGet-OfficePowerPointLayoutBox
[-Document <PowerPointDocument>]
[-Gutter <OfficeLength>]
[-Margin <OfficeLength>]
-Rows <Int32>
[<CommonParameters>]#Parameter set:
RowsExamples
Get a content box with a physical margin.
$box = Get-OfficePowerPointLayoutBox -Document $deck -Margin 1.5cmPlace text in equal columns.
$columns = Get-OfficePowerPointLayoutBox -Document $deck -Columns 2 -Margin 1.5cm -Gutter 1cm
PowerPointSlide -Document $deck -Title 'Status' {
PowerPointTextBox 'Healthy' -X $columns[0].Left -Y $columns[0].Top -Width $columns[0].Width -Height 40
}Parameters
- -Document PowerPointDocument
- Gets or sets an explicit live document; omission uses the enclosing content block.
- -Margin OfficeLength
- Gets or sets the outer margin; numbers mean points.
- -Columns Int32
- Gets or sets the number of columns.
- -Gutter OfficeLength
- Gets or sets the space between rows or columns; numbers mean points.
- -Rows Int32
- Gets or sets the number of rows.
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.