API Reference
Command
Set-OfficePowerPointSlideSize
Sets the slide size for a PowerPoint presentation.
Remarks
Sets the slide size for a PowerPoint presentation.
Examples
Set a standard widescreen presentation size.
PS>Set-OfficePowerPointSlideSize -Presentation $ppt -Preset Screen16x9
Applies the 16:9 widescreen preset to the presentation.
Set a custom size in centimeters.
PS>Set-OfficePowerPointSlideSize -Presentation $ppt -WidthCm 25.4 -HeightCm 14.0
Sets the presentation slide size to a custom 25.4 x 14.0 cm layout.
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-OfficePowerPointSlideSize [-Portrait] [-Presentation <PowerPointPresentation>] -Preset <Screen4x3|Screen16x9|Screen16x10> [<CommonParameters>]#Parameter set:
PresetParameters
- Portrait SwitchParameter
- Apply the preset in portrait orientation.
- Presentation PowerPointPresentation
- Presentation to update (optional inside New-OfficePowerPoint).
- Preset PowerPointSlideSizePreset
- Preset slide size to apply.
- Possible values:
Screen4x3,Screen16x9,Screen16x10
Outputs
OfficeIMO.PowerPoint.PowerPointSlideSize
Set-OfficePowerPointSlideSize -HeightCm <Double> [-Presentation <PowerPointPresentation>] -WidthCm <Double> [<CommonParameters>]#Parameter set:
CentimetersParameters
- HeightCm Double
- Custom slide height in centimeters.
- Presentation PowerPointPresentation
- Presentation to update (optional inside New-OfficePowerPoint).
- WidthCm Double
- Custom slide width in centimeters.
Outputs
OfficeIMO.PowerPoint.PowerPointSlideSize
Set-OfficePowerPointSlideSize -HeightInches <Double> [-Presentation <PowerPointPresentation>] -WidthInches <Double> [<CommonParameters>]#Parameter set:
InchesParameters
- HeightInches Double
- Custom slide height in inches.
- Presentation PowerPointPresentation
- Presentation to update (optional inside New-OfficePowerPoint).
- WidthInches Double
- Custom slide width in inches.
Outputs
OfficeIMO.PowerPoint.PowerPointSlideSize
Set-OfficePowerPointSlideSize -HeightPoints <Double> [-Presentation <PowerPointPresentation>] -WidthPoints <Double> [<CommonParameters>]#Parameter set:
PointsParameters
- HeightPoints Double
- Custom slide height in points.
- Presentation PowerPointPresentation
- Presentation to update (optional inside New-OfficePowerPoint).
- WidthPoints Double
- Custom slide width in points.
Outputs
OfficeIMO.PowerPoint.PowerPointSlideSize
Set-OfficePowerPointSlideSize -HeightEmus <Int64> [-Presentation <PowerPointPresentation>] -WidthEmus <Int64> [<CommonParameters>]#Parameter set:
EmusParameters
- HeightEmus Int64
- Custom slide height in EMUs.
- Presentation PowerPointPresentation
- Presentation to update (optional inside New-OfficePowerPoint).
- WidthEmus Int64
- Custom slide width in EMUs.
Outputs
OfficeIMO.PowerPoint.PowerPointSlideSize