API Reference
Cmdlet
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 <Nullable`1>] [-PassThru] [-Slide <PowerPointSlide>] [-ToSlide] [<CommonParameters>]#Parameter set:
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 Nullable`1
- 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 <Nullable`1>] -Distribute <Horizontal|Vertical> -InputObject <Object> [-MarginPoints <Nullable`1>] [-PassThru] [-Slide <PowerPointSlide>] [-SpacingPoints <Nullable`1>] [-ToSlide] [<CommonParameters>]#Parameter set:
DistributeParameters
- Center SwitchParameter
- Center a fixed-spacing distribution within its bounds.
- CrossAxisAlign Nullable`1
- Optional cross-axis alignment for even distribution.
- Distribute PowerPointShapeDistribution
- Distribution operation.
- Possible values:
Horizontal,Vertical - InputObject Object
- PowerPoint shapes or shape info records from Get-OfficePowerPointShape or Find-OfficePowerPointShape.
- MarginPoints Nullable`1
- 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 Nullable`1
- 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 <Nullable`1>] [-Flow <RowMajor|ColumnMajor>] -Grid [-GutterXPoints <Double>] [-GutterYPoints <Double>] -InputObject <Object> [-MarginPoints <Nullable`1>] [-NoResize] [-PassThru] [-Rows <Nullable`1>] [-Slide <PowerPointSlide>] [-ToSlide] [<CommonParameters>]#Parameter set:
GridParameters
- AutoGrid SwitchParameter
- Let OfficeIMO choose the grid dimensions.
- Columns Nullable`1
- 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 Nullable`1
- 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 Nullable`1
- 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