OfficeIMO

API Reference

Command

Remove-OfficePowerPointSlide

Namespace PSWriteOffice
Inputs
None
Outputs
System.Object

Removes a slide by index.

Remarks

Removes a slide by index.

Examples

Delete the first slide.


PS>Remove-OfficePowerPointSlide -Presentation $ppt -Index 0
        

Removes slide 1 from the deck.

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

Remove-OfficePowerPointSlide -Index <Int32> -Presentation <PowerPointPresentation> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Index Int32 requiredposition: namedpipeline: False
Zero-based slide index.
Presentation PowerPointPresentation requiredposition: namedpipeline: False
Presentation to modify.

Outputs

System.Object