ISlideCollectionInsertClone Method (Int32, ISlide, IMasterSlide, Boolean) |
Inserts a copy of a specified source slide to specified position 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).
Namespace:
Aspose.Slides
Assembly:
Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
SyntaxISlide InsertClone(
int index,
ISlide sourceSlide,
IMasterSlide destMaster,
bool allowCloneMissingLayout
)
Function InsertClone (
index As Integer,
sourceSlide As ISlide,
destMaster As IMasterSlide,
allowCloneMissingLayout As Boolean
) As ISlide
ISlide^ InsertClone(
int index,
ISlide^ sourceSlide,
IMasterSlide^ destMaster,
bool allowCloneMissingLayout
)
abstract InsertClone :
index : int *
sourceSlide : ISlide *
destMaster : IMasterSlide *
allowCloneMissingLayout : bool -> ISlide
Parameters
- index
- Type: SystemInt32
Index of new slide. - sourceSlide
- Type: Aspose.SlidesISlide
Slide to clone. - destMaster
- Type: Aspose.SlidesIMasterSlide
Master slide for a new slide. - allowCloneMissingLayout
- Type: SystemBoolean
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).
Return Value
Type:
ISlideInserted slide.
Exceptions| Exception | Condition |
|---|
| PptxEditException |
Thrown if there is no appropriate layout in specified master and
allowCloneMissingLayout is false.
|
See Also