GlobalLayoutSlideCollectionAddClone Method (ILayoutSlide, IMasterSlide) |
Adds a copy of a specified layout slide to the presentation.
Namespace:
Aspose.Slides
Assembly:
Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntaxpublic ILayoutSlide AddClone(
ILayoutSlide sourceLayout,
IMasterSlide destMaster
)
Public Function AddClone (
sourceLayout As ILayoutSlide,
destMaster As IMasterSlide
) As ILayoutSlide
public:
virtual ILayoutSlide^ AddClone(
ILayoutSlide^ sourceLayout,
IMasterSlide^ destMaster
) sealed
abstract AddClone :
sourceLayout : ILayoutSlide *
destMaster : IMasterSlide -> ILayoutSlide
override AddClone :
sourceLayout : ILayoutSlide *
destMaster : IMasterSlide -> ILayoutSlide
Parameters
- sourceLayout
- Type: Aspose.SlidesILayoutSlide
Slide to clone. - destMaster
- Type: Aspose.SlidesIMasterSlide
Master slide for a new layout.
Return Value
Type:
ILayoutSlideAdded slide.
Implements
IGlobalLayoutSlideCollectionAddClone(ILayoutSlide, IMasterSlide)
Remarks
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 method is method
AddClone(ILayoutSlide)
accessed with
LayoutSlides property.
See Also