add_clone method
add_clone
Adds a copy of a specified layout slide to the presentation.
Returns
Added slide.
def add_clone(self, source_layout):
...
Parameter | Type | Description |
---|---|---|
source_layout | ILayoutSlide | Slide to clone. |
Remarks
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.
add_clone
Adds a copy of a specified layout slide to the presentation.
Returns
Added slide.
def add_clone(self, source_layout, dest_master):
...
Parameter | Type | Description |
---|---|---|
source_layout | ILayoutSlide | Slide to clone. |
dest_master | IMasterSlide | Master slide for a new layout. |
Remarks
- 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 method is method Aspose.Slides.IMasterLayoutSlideCollection.AddClone(Aspose.Slide
accessed with
IMasterSlide.layout_slides
property.
See Also
- class
GlobalLayoutSlideCollection
- class
ILayoutSlide
- class
IMasterSlide
- module
aspose.slides
- library
Aspose.Slides