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):
...
Parameter | Type | Description |
---|---|---|
source_slide | ISlide | Slide 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):
...
Parameter | Type | Description |
---|---|---|
source_slide | ISlide | Slide to clone. |
section | ISection | Section for a new slide. |
Exceptions
Exception | Description |
---|---|
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):
...
Parameter | Type | Description |
---|---|---|
source_slide | ISlide | Slide to clone. |
dest_layout | ILayoutSlide | Layout 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):
...
Parameter | Type | Description |
---|---|---|
source_slide | ISlide | Slide to clone. |
dest_master | IMasterSlide | Master slide for a new slide. |
allow_clone_missing_layout | bool | If 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
Exception | Description |
---|---|
PptxEditException | Thrown if there is no appropriate layout in specified master and allowCloneMissingLayout is false. |
See Also
- class
ILayoutSlide
- class
IMasterSlide
- class
ISection
- class
ISlide
- class
ISlideCollection
- class
PptxEditException
- module
aspose.slides
- library
Aspose.Slides