SlideCollectionInsertClone Method (Int32, ISlide, IMasterSlide, Boolean)

Inserts a copy of a specified source slide to specified position 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: 21.5.0.0 (21.5)
Syntax
public ISlide InsertClone(
	int index,
	ISlide sourceSlide,
	IMasterSlide destMaster,
	bool allowCloneMissingLayout
)

Parameters

index
Type: SystemInt32
Index of new slide.
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
Inserted slide.

Implements

ISlideCollectionInsertClone(Int32, ISlide, IMasterSlide, Boolean)
Exceptions
ExceptionCondition
PptxEditException Thrown if there is no appropriate layout in specified master and allowCloneMissingLayout is false.
See Also