API Reference
Set-OfficePowerPointShapeLayout
Aligns, distributes, or arranges PowerPoint shapes using OfficeIMO layout helpers.
Remarks
Aligns, distributes, or arranges PowerPoint shapes using OfficeIMO layout helpers.
Examples
Align found shapes.
PS>
Find-OfficePowerPointShape -Slide $slide -Name 'Kpi.*' |
Set-OfficePowerPointShapeLayout -Align Top
Uses OfficeIMO.PowerPoint to align all matching shapes to the top edge of their selection bounds.
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-OfficePowerPointShapeLayout -Align <Left> -InputObject <Object> [-MarginPoints <Double>] [-PassThru] [-Slide <PowerPointSlide>] [-ToSlide] [<CommonParameters>]#AlignParameters
- Align PowerPointShapeAlignment
- Alignment operation.
- Possible values:
Left,Center,Right,Top,Middle,Bottom - InputObject Object
- PowerPoint shapes or shape info records from Get-OfficePowerPointShape or Find-OfficePowerPointShape.
- MarginPoints Double
- Use slide content bounds with the supplied margin in points.
- PassThru SwitchParameter
- Emit the arranged shapes.
- Slide PowerPointSlide
- Slide that owns raw PowerPointShape inputs. Shape info records carry their own slide.
- ToSlide SwitchParameter
- Use the full slide bounds instead of the current selection bounds.
Outputs
OfficeIMO.PowerPoint.PowerPointShape
Set-OfficePowerPointShapeLayout [-Center] [-CrossAxisAlign <Left>] -Distribute <Horizontal|Vertical> -InputObject <Object> [-MarginPoints <Double>] [-PassThru] [-Slide <PowerPointSlide>] [-SpacingPoints <Double>] [-ToSlide] [<CommonParameters>]#DistributeParameters
- Center SwitchParameter
- Center a fixed-spacing distribution within its bounds.
- CrossAxisAlign PowerPointShapeAlignment
- Optional cross-axis alignment for even distribution.
- Possible values:
Left,Center,Right,Top,Middle,Bottom - Distribute PowerPointShapeDistribution
- Distribution operation.
- Possible values:
Horizontal,Vertical - InputObject Object
- PowerPoint shapes or shape info records from Get-OfficePowerPointShape or Find-OfficePowerPointShape.
- MarginPoints Double
- Use slide content bounds with the supplied margin in points.
- PassThru SwitchParameter
- Emit the arranged shapes.
- Slide PowerPointSlide
- Slide that owns raw PowerPointShape inputs. Shape info records carry their own slide.
- SpacingPoints Double
- Fixed spacing between distributed shapes in points.
- ToSlide SwitchParameter
- Use the full slide bounds instead of the current selection bounds.
Outputs
OfficeIMO.PowerPoint.PowerPointShape
Set-OfficePowerPointShapeLayout [-AutoGrid] [-Columns <Int32>] [-Flow <RowMajor|ColumnMajor>] -Grid [-GutterXPoints <Double>] [-GutterYPoints <Double>] -InputObject <Object> [-MarginPoints <Double>] [-NoResize] [-PassThru] [-Rows <Int32>] [-Slide <PowerPointSlide>] [-ToSlide] [<CommonParameters>]#GridParameters
- AutoGrid SwitchParameter
- Let OfficeIMO choose the grid dimensions.
- Columns Int32
- Grid column count. Omit with AutoGrid.
- Flow PowerPointShapeGridFlow
- Fill the grid column-by-column instead of row-by-row.
- Possible values:
RowMajor,ColumnMajor - Grid SwitchParameter
- Arrange shapes in a grid.
- GutterXPoints Double
- Horizontal grid gutter in points.
- GutterYPoints Double
- Vertical grid gutter in points.
- InputObject Object
- PowerPoint shapes or shape info records from Get-OfficePowerPointShape or Find-OfficePowerPointShape.
- MarginPoints Double
- Use slide content bounds with the supplied margin in points.
- NoResize SwitchParameter
- Keep each shape's current size when arranging in a grid.
- PassThru SwitchParameter
- Emit the arranged shapes.
- Rows Int32
- Grid row count. Omit with AutoGrid.
- Slide PowerPointSlide
- Slide that owns raw PowerPointShape inputs. Shape info records carry their own slide.
- ToSlide SwitchParameter
- Use the full slide bounds instead of the current selection bounds.
Outputs
OfficeIMO.PowerPoint.PowerPointShape