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)
public ISlide InsertClone(
	int index,
	ISlide sourceSlide


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

Return Value

Type: ISlide
Inserted slide.


ISlideCollectionInsertClone(Int32, ISlide)
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