SlideCollectionInsertClone Method (Int32, ISlide)

Inserts a copy of a specified slide to specified position of the collection.

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
)

Parameters

index
Type: SystemInt32
Index of new slide.
sourceSlide
Type: Aspose.SlidesISlide
Slide to clone.

Return Value

Type: ISlide
Inserted slide.

Implements

ISlideCollectionInsertClone(Int32, ISlide)
Remarks
When cloning a slide between different presentations slide's master can be cloned too. Internal registry is used to track automatically cloned masters to prevent creation of multiple clones of the same master slide. Manual cloning of master slides will be neither prevented nor registered. If you need more control over cloning process use InsertClone(Int32, ISlide, ILayoutSlide) or InsertClone(Int32, ISlide, IMasterSlide, Boolean) for cloning slides and AddClone(IMasterSlide) for cloning masters.
See Also