How can I copy shapes from one slide to another slide in c#?

后端 未结 1 499
天命终不由人
天命终不由人 2020-12-21 06:34

I need to insert shape(s) from presentation1 to presentation2. We can insert a slide like

pptApp.Presentations[Presentation2].Slides.InsertFromFile(\"presenation1\"

相关标签:
1条回答
  • 2020-12-21 07:29
    var origSlide = origPres.Slides[slideNum];
    var destSlide = newPres.Slides[slideNum];
    foreach (Shape origShape in origSlide.Shapes)
    {
        origShape.Copy();
        newPres.Slides.Paste(slideNum);
    }
    
    0 讨论(0)
提交回复
热议问题