I am using Microsoft.Interop.PowerPoint in my app and so code below:
thisSlide.Design = thatSlide.Design;
,
where thisSlide is from current presentation and thatSlide is from another, affects not only thisSlide, but slide after it too and applies current thatSlide's design to itself.
So my question is, is there any workaround to avoid this behavior?
The Design object sets the Slide Master for the presentation. The slide master affects all slides using the same master. Most likely, you want to set the Slide Layout :
objSlide1.CustomLayout = objSlide2.CustomLayout
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.