AddClone()
Contents
[
Hide
]GlobalLayoutSlideCollection::AddClone(System::SharedPtr<ILayoutSlide>) method
Adds a copy of a specified layout slide to the presentation.
System::SharedPtr<ILayoutSlide> Aspose::Slides::GlobalLayoutSlideCollection::AddClone(System::SharedPtr<ILayoutSlide> sourceLayout) override
Arguments
Parameter | Type | Description |
---|---|---|
sourceLayout | System::SharedPtr<ILayoutSlide> | Slide to clone. |
Return Value
Added slide.
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.
GlobalLayoutSlideCollection::AddClone(System::SharedPtr<ILayoutSlide>, System::SharedPtr<IMasterSlide>) method
Adds a copy of a specified layout slide to the presentation.
System::SharedPtr<ILayoutSlide> Aspose::Slides::GlobalLayoutSlideCollection::AddClone(System::SharedPtr<ILayoutSlide> sourceLayout, System::SharedPtr<IMasterSlide> destMaster) override
Arguments
Parameter | Type | Description |
---|---|---|
sourceLayout | System::SharedPtr<ILayoutSlide> | Slide to clone. |
destMaster | System::SharedPtr<IMasterSlide> | Master slide for a new layout. |
Return Value
Added slide.
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 IMasterLayoutSlideCollection::AddClone(SharedPtr
) accessed with IMasterSlide::get_LayoutSlides() property.
See Also
- Typedef SharedPtr
- Class ILayoutSlide
- Class GlobalLayoutSlideCollection
- Class IMasterSlide
- Namespace Aspose::Slides
- Library Aspose.Slides