ISlideCollectionAddClone Method (ISlide, IMasterSlide, Boolean)

Adds a copy of a specified source slide to the end of the collection. Appropriate layout will be selected automatically from the specified master (appropriate layout is the layout with the same Type or Name as of layout of the source slide). If there is no appropriate layout then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.11.0.0 (20.11)
Syntax
ISlide AddClone(
	ISlide sourceSlide,
	IMasterSlide destMaster,
	bool allowCloneMissingLayout
)

Parameters

sourceSlide
Type: Aspose.SlidesISlide
Slide to clone.
destMaster
Type: Aspose.SlidesIMasterSlide
Master slide for a new slide.
allowCloneMissingLayout
Type: SystemBoolean
If there is no appropriate layout in specified master then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).

Return Value

Type: ISlide
New slide.
Exceptions
ExceptionCondition
PptxEditException Thrown if there is no appropriate layout in specified master and allowCloneMissingLayout is false.
See Also