Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Copy-OfficePowerPointSlide

Module
PSWriteOffice
Inputs
PSWriteOffice.Foundation.PowerPointSlideSelector
Outputs
OfficeIMO.PowerPoint.PowerPointSlide

Copies a native slide within its document, preserving its content and relationships.

Syntax

Copy-OfficePowerPointSlide
[-Document <PowerPointDocument>]
[-PassThru]
[-Position <Int32>]
[-Slide] <PowerPointSlideSelector>
[<CommonParameters>]
#
Parameter set: Slide

Examples

Copy the first slide to the end of a two-slide deck.

Copy-OfficePowerPointSlide -Document $deck -Slide 1 -Position 3 -PassThru

Copy a selected native slide immediately after itself.

$slide | Copy-OfficePowerPointSlide -PassThru

Parameters

-Document PowerPointDocument optional
Gets or sets the document for numeric selection; omission uses the enclosing scope or native slide owner.
-PassThru SwitchParameter optional
Gets or sets whether to return the new native slide.
-Position Int32 optional
Gets or sets the copy's one-based destination position; omission inserts it immediately after the source.
-Slide PowerPointSlideSelector requiredposition: 0pipeline: True (ByValue)
Gets or sets a native slide or its one-based position.

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.