insertClone

insertClone(int index, LayoutSlide sourceLayout) function

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

Parameters

NameTypeDescription
indexintIndex of new slide.
sourceLayoutLayoutSlideSlide to clone. New layout will be linked with parent master slide for this layout slides collection. So this is analogue of copy/paste with “Use Destination Theme” option in PowerPoint.

Result

LayoutSlide