addClone

Contents
[ ]

addClone(LayoutSlide sourceLayout) function

Adds a copy of a specified layout slide to the presentation.

Parameters

NameTypeDescription
sourceLayoutLayoutSlideSlide to clone. When cloning a layout between different presentations layout’s master can be cloned too to keep source formatting. 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.

Result

LayoutSlide


addClone(LayoutSlide sourceLayout, MasterSlide destMaster) function

Adds a copy of a specified layout slide to the presentation.

Parameters

NameTypeDescription
sourceLayoutLayoutSlideSlide to clone.
destMasterMasterSlideMaster slide for a new layout. 1) New layout will be linked with defined master in destination presentation. So this is analogue of copy/paste with “Use Destination Theme” option in PowerPoint. 2) Analogue of this function is function IMasterLayoutSlideCollection#addClone(ILayoutSlide) accessed with ( IMasterSlide#getLayoutSlides) property.

Result

LayoutSlide