Skip to content

Commit c0bf010

Browse files
Merge pull request #1885 from syncfusion-content/ES-868571-Modfy-Existing-Code
ES-868571 Modify the existing code slide.Add API in Presentation.
2 parents 1a620cd + f5f2f6c commit c0bf010

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

File-Formats/Presentation/Working-with-Slide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ IPresentation destinationPresentation = Presentation.Open(destinationPresentatio
461461
//Clones the first slide of the source Presentation
462462
ISlide clonedSlide = sourcePresentation.Slides[0].Clone();
463463
//Merges the cloned slide to the destination Presentation with paste option - Destination Theme
464-
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation);
464+
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme);
465465
//Save the PowerPoint Presentation as stream
466466
FileStream outputStream = new FileStream(OutputFileName, FileMode.Create);
467467
destinationPresentation.Save(outputStream);
@@ -481,7 +481,7 @@ IPresentation destinationPresentation = Presentation.Open("DestinationPresentati
481481
//Clones the first slide of the source Presentation
482482
ISlide clonedSlide = sourcePresentation.Slides[0].Clone();
483483
//Merges the cloned slide to the destination Presentation with paste option - Destination Theme
484-
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation);
484+
destinationPresentation.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme);
485485
//Saves the destination Presentation
486486
destinationPresentation.Save("Output.pptx");
487487
//Closes the source presentation
@@ -498,7 +498,7 @@ Dim destinationPresentation_1 As IPresentation = Presentation.Open("DestinationP
498498
'Clones the first slide of the source Presentation
499499
Dim clonedSlide As ISlide = sourcePresentation_1.Slides(0).Clone()
500500
'Merges the cloned slide to the destination Presentation with paste option - Destination Theme
501-
destinationPresentation_1.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme, sourcePresentation_1)
501+
destinationPresentation_1.Slides.Add(clonedSlide, PasteOptions.UseDestinationTheme)
502502
'Saves the destination Presentation
503503
destinationPresentation_1.Save("Output.pptx")
504504
'Closes the source presentation

0 commit comments

Comments
 (0)