GlobalLayoutSlideCollectionAddClone Method (ILayoutSlide, IMasterSlide)

Adds a copy of a specified layout slide to the presentation.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.6.0.0 (21.6)
Syntax
public ILayoutSlide AddClone(
	ILayoutSlide sourceLayout,
	IMasterSlide destMaster
)

Parameters

sourceLayout
Type: Aspose.SlidesILayoutSlide
Slide to clone.
destMaster
Type: Aspose.SlidesIMasterSlide
Master slide for a new layout.

Return Value

Type: ILayoutSlide
Added slide.

Implements

IGlobalLayoutSlideCollectionAddClone(ILayoutSlide, IMasterSlide)
Remarks
1) New layout will be linked with defined master in destination presentation. So this is analogue of copy/paste with "Use Destination Theme" option in PowerPoint. 2) Analogue of this method is method AddClone(ILayoutSlide) accessed with LayoutSlides property.
See Also