Insert()
Contents
[
Hide
]MasterLayoutSlideCollection::Insert(int32_t, SlideLayoutType, System::String) method
Inserts a new layout slide to specified position of the collection.
System::SharedPtr<ILayoutSlide> Aspose::Slides::MasterLayoutSlideCollection::Insert(int32_t index, SlideLayoutType layoutType, System::String layoutName) override
Arguments
Parameter | Type | Description |
---|---|---|
index | int32_t | Index of new slide. |
layoutType | SlideLayoutType | Layout type for a new layout. Supported layout types: Title, TitleOnly, Blank, TitleAndObject, VerticalText, VerticalTitleAndText, TwoObjects, SectionHeader, TwoTextAndTwoObjects, TitleObjectAndCaption, PictureAndCaption, Custom. Other layout types are not supported now: Text, TwoColumnText, Table, TextAndChart, ChartAndText, Diagram, Chart, TextAndClipArt, ClipArtAndText, TextAndObject, ObjectAndText, Object, TextAndMedia, MediaAndText, ObjectOverText, TextOverObject, TextAndTwoObjects, TwoObjectsAndText, TwoObjectsOverText, FourObjects, ClipArtAndVerticalText, VerticalTitleAndTextOverChart, ObjectAndTwoObject, TwoObjectsAndObject. |
layoutName | System::String | Name for a new layout. If passed name is already in use the ArgumentException will be thrown. If null parameter is passed then name genarated atomatically in regards to passed layout type (for example "Title Slide" or "1_Title Slide", "2_..", etc.). |
Return Value
Inserted slide.
Remarks
Inserted layout for value SlideLayoutType::Custom of layoutType contains no placeholders and no shapes.
See Also
- Enum SlideLayoutType
- Typedef SharedPtr
- Class ILayoutSlide
- Class String
- Class MasterLayoutSlideCollection
- Namespace Aspose::Slides
- Library Aspose.Slides