public interface IMasterLayoutSlideCollection extends ILayoutSlideCollection
Represents a collections of all layout slides of defined master slide. Extends ILayoutSlideCollection interface with methods for adding/inserting/removing/cloning layout slides in context of the individual collections of master's layout slides.
Modifier and Type | Method and Description |
---|---|
ILayoutSlide |
add(byte layoutType,
java.lang.String layoutName)
Adds a new layout slide to the end of the collection.
|
ILayoutSlide |
addClone(ILayoutSlide sourceLayout)
Adds a copy of a specified layout slide to the end of the collection.
|
ILayoutSlide |
insert(int index,
byte layoutType,
java.lang.String layoutName)
Inserts a new layout slide to specified position of the collection.
|
ILayoutSlide |
insertClone(int index,
ILayoutSlide sourceLayout)
Inserts a copy of a specified layout slide to specified position of the collection.
|
void |
removeAt(int index)
Removes the element at the specified index of the collection.
|
void |
reorder(int index,
ILayoutSlide layoutSlide)
Moves layout slide from the collection to the specified position.
|
get_Item, getByType, remove, removeUnused
iterator
ILayoutSlide addClone(ILayoutSlide sourceLayout)
Adds a copy of a specified layout slide to the end of the collection.
sourceLayout
- Slide to clone.
IGlobalLayoutSlideCollection.addClone(ILayoutSlide,IMasterSlide)
accessed with IPresentation.getLayoutSlides()
property.
ILayoutSlide insertClone(int index, ILayoutSlide sourceLayout)
Inserts a copy of a specified layout slide to specified position of the collection.
index
- Index of new slide.sourceLayout
- Slide to clone.
ILayoutSlide add(byte layoutType, java.lang.String layoutName)
Adds a new layout slide to the end of the collection.
layoutType
- 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
- 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.).
layoutType
contains no placeholders and no shapes.
2) Analogue of this method is
method IGlobalLayoutSlideCollection.add(IMasterSlide,byte,String)
accessed with IPresentation.getLayoutSlides()
property.
com.aspose.ms.System.NotImplementedException
- Thrown if unsupported value of parameter layoutType
is passed. Layout types that 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.com.aspose.ms.System.ArgumentException
- Thrown if layout name value layoutName
is already in use in
this collection of the layouts.ILayoutSlide insert(int index, byte layoutType, java.lang.String layoutName)
Inserts a new layout slide to specified position of the collection.
index
- Index of new slide.layoutType
- 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
- 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.).
layoutType
contains no placeholders and no shapes.
com.aspose.ms.System.NotImplementedException
- Thrown if unsupported value of parameter layoutType
is passed. Layout types that 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.com.aspose.ms.System.ArgumentException
- Thrown if layout name value layoutName
is already in use in
this collection of the layouts.void removeAt(int index)
Removes the element at the specified index of the collection.
index
- The zero-based index of the element to remove.
ILayoutSlide.remove()
method to simplify code.
PptxEditException
- Thrown if layout is used in presentation (its HasDependingSlides property is true).void reorder(int index, ILayoutSlide layoutSlide)
Moves layout slide from the collection to the specified position.
index
- Target index.layoutSlide
- Slide to move.