Cmdlet
Set-OfficePowerPointShapeLayout
Aligns, distributes, or arranges PowerPoint shapes using OfficeIMO layout helpers.
Syntax
Set-OfficePowerPointShapeLayout -Align <PowerPointShapeAlignment> [-InputObject] <Object> [-MarginPoints <Double>] [-PassThru] [-Slide <PowerPointSlide>] [-ToSlide] [<CommonParameters>]#Parameter set:
AlignSet-OfficePowerPointShapeLayout [-Center] [-CrossAxisAlign <PowerPointShapeAlignment>] -Distribute <Horizontal|Vertical> [-InputObject] <Object> [-MarginPoints <Double>] [-PassThru] [-Slide <PowerPointSlide>] [-SpacingPoints <Double>] [-ToSlide] [<CommonParameters>]#Parameter set:
DistributeSet-OfficePowerPointShapeLayout [-AutoGrid] [-Columns <Int32>] [-Flow <RowMajor|ColumnMajor>] -Grid [-GutterXPoints <Double>] [-GutterYPoints <Double>] [-InputObject] <Object> [-MarginPoints <Double>] [-NoResize] [-PassThru] [-Rows <Int32>] [-Slide <PowerPointSlide>] [-ToSlide] [<CommonParameters>]#Parameter set:
GridExamples
Align found shapes.
Find-OfficePowerPointShape -Slide $slide -Name 'Kpi.*' |
Set-OfficePowerPointShapeLayout -Align TopUses OfficeIMO.PowerPoint to align all matching shapes to the top edge of their selection bounds.
Parameters
- -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.
- -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 - -SpacingPoints Double
- Fixed spacing between distributed shapes in points.
- -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.
- -NoResize SwitchParameter
- Keep each shape's current size when arranging in a grid.
- -Rows Int32
- Grid row count. Omit with AutoGrid.
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.