Cmdlet
Set-OfficePowerPointShapeLayout
Aligns, distributes, or arranges PowerPoint shapes using OfficeIMO layout helpers.
Syntax
Set-OfficePowerPointShapeLayout
-Alignment <PowerPointShapeAlignment>
[-InputObject] <Object[]>
[-Margin <OfficeLength>]
[-PassThru]
[-Slide <PowerPointSlideSelector>]
[-ToSlide]
[<CommonParameters>]#Parameter set:
AlignmentSet-OfficePowerPointShapeLayout
[-Center]
[-CrossAxisAlignment <PowerPointShapeAlignment>]
-Distribute <Horizontal| Vertical>
[-InputObject] <Object[]>
[-Margin <OfficeLength>]
[-PassThru]
[-Slide <PowerPointSlideSelector>]
[-Spacing <OfficeLength>]
[-ToSlide]
[<CommonParameters>]#Parameter set:
DistributeSet-OfficePowerPointShapeLayout
[-AutoGrid]
[-Columns <Int32>]
[-Flow <RowMajor| ColumnMajor>]
-Grid
[-GutterX <OfficeLength>]
[-GutterY <OfficeLength>]
[-InputObject] <Object[]>
[-Margin <OfficeLength>]
[-NoResize]
[-PassThru]
[-Rows <Int32>]
[-Slide <PowerPointSlideSelector>]
[-ToSlide]
[<CommonParameters>]#Parameter set:
GridExamples
Align found shapes.
Get-OfficePowerPointShape -Slide $slide -Name 'Kpi.*' |
Set-OfficePowerPointShapeLayout -Alignment TopUses OfficeIMO.PowerPoint to align all matching shapes to the top edge of their selection bounds.
Parameters
- -Alignment PowerPointShapeAlignment
- Alignment operation.
- Possible values:
Left,Center,Right,Top,Middle,Bottom - -InputObject Object[]
- PowerPoint shapes or shape info records from Get-OfficePowerPointShape.
- -Margin OfficeLength
- Use slide content bounds with the supplied margin; bare numbers mean points.
- -PassThru SwitchParameter
- Emit the arranged shapes.
- -Slide PowerPointSlideSelector
- Native slide or one-based slide number; omission uses the supplied shapes' owning slide.
- -ToSlide SwitchParameter
- Use the full slide bounds instead of the current selection bounds.
- -Center SwitchParameter
- Center a fixed-spacing distribution within its bounds.
- -CrossAxisAlignment PowerPointShapeAlignment
- Optional cross-axis alignment for even distribution.
- Possible values:
Left,Center,Right,Top,Middle,Bottom - -Distribute PowerPointShapeDistribution
- Distribution operation.
- Possible values:
Horizontal,Vertical - -Spacing OfficeLength
- Fixed spacing between distributed shapes; bare numbers mean 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.
- -GutterX OfficeLength
- Horizontal grid gutter; bare numbers mean points.
- -GutterY OfficeLength
- Vertical grid gutter; bare numbers mean 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.