add_clone method

add_clone

Adds a copy of a specified slide to the end of the collection.

Returns

New slide.

def add_clone(self, source_slide):
    ...
ParameterTypeDescription
source_slideISlideSlide to clone.

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 Aspose.Slides.ISlideCollection.AddClone(Aspose.Slides.ISlide,Aspose.Slide or Aspose.Slides.ISlideCollection.AddClone(Aspose.Slides.ISlide,Aspose.Slides.IMasterSlide,Syste for cloning slides, Aspose.Slides.IGlobalLayoutSlideCollection.AddClone(Aspose.Slide or Aspose.Slides.IGlobalLayoutSlideCollection.AddClone(Aspose.Slides.ILayoutSlide,Aspose.Slide for cloning layouts and Aspose.Slides.IMasterSlideCollection.AddClone(Aspose.Slide for cloning masters.

add_clone

Adds a copy of a specified slide to the end of the specified section.

Returns

New slide.

def add_clone(self, source_slide, section):
    ...
ParameterTypeDescription
source_slideISlideSlide to clone.
sectionISectionSection for a new slide.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentNullException))
PptxEditException

add_clone

Adds a copy of a specified slide to the end of the collection.

Returns

New slide.

def add_clone(self, source_slide, dest_layout):
    ...
ParameterTypeDescription
source_slideISlideSlide to clone.
dest_layoutILayoutSlideLayout slide for a new slide.

add_clone

Adds a copy of a specified source slide to the end 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).

Returns

New slide.

def add_clone(self, source_slide, dest_master, allow_clone_missing_layout):
    ...
ParameterTypeDescription
source_slideISlideSlide to clone.
dest_masterIMasterSlideMaster slide for a new slide.
allow_clone_missing_layoutboolIf 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).

Exceptions

ExceptionDescription
PptxEditExceptionThrown if there is no appropriate layout in specified master and
allowCloneMissingLayout is false.

See Also