|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.pptx.SlidesEx
public final class SlidesEx
Represents a collection of a slides.
Method Summary | |
---|---|
int |
addClone(SlideEx slide)
Adds a copy of a specified slide to the end of the collection. |
int |
addClone(SlideEx slide,
LayoutSlideEx layout)
Adds a copy of a specified slide to the end of the collection. |
int |
addClone(SlideEx slide,
MasterSlideEx master)
Adds a copy of a specified slide to the end of the collection. |
int |
addEmptySlide(LayoutSlideEx layout)
Adds a new empty slide to the end of the collection. |
SlideEx |
get(int index)
Gets the element at the specified index. |
int |
indexOf(SlideEx slide)
Returns an index of the specified slide in the collection. |
void |
insertClone(int index,
SlideEx slide)
Inserts a copy of a specified slide to specified position of the collection Note: this function supports cloning within the same presentation. |
void |
insertClone(int index,
SlideEx slide,
LayoutSlideEx layout)
Inserts a copy of a specified slide to specified position of the collection. |
void |
insertClone(int index,
SlideEx slide,
MasterSlideEx master)
Inserts a copy of a specified slide to specified position of the collection. |
void |
insertEmptySlide(int index,
LayoutSlideEx layout)
Inserts a copy of a specified slide to specified position of the collection. |
java.util.Iterator<SlideEx> |
iterator()
Returns an iterator for the entire collection. |
void |
remove(int index)
Removes the element at the specified index of the collection. |
void |
remove(SlideEx value)
Removes the first occurrence of a specific object from the collection. |
void |
reorder(int index,
SlideEx slide)
Moves slide from the collection to the specified position. |
void |
reorder(int index,
SlideEx[] slides)
Moves slides from the collection to the specified position. |
int |
size()
Gets the number of elements actually contained in the collection. |
SlideEx[] |
toArray()
Creates and returns an array with all slides in it. |
SlideEx[] |
toArray(int startIndex,
int count)
Creates and returns an array with all slides from the specified range in it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int size()
public SlideEx get(int index)
index
- index of the element to return.
SlideEx
.public int addClone(SlideEx slide)
slide
- Slide to clone.
SlidesEx.addClone(SlideEx, LayoutSlideEx)
,
SlidesEx.addClone(SlideEx, MasterSlideEx)
,
MasterSlidesEx.addClone(MasterSlideEx)
public void insertClone(int index, SlideEx slide)
SlidesEx.insertClone(int, SlideEx, LayoutSlideEx)
or
SlidesEx.insertClone(int, SlideEx, MasterSlideEx)
index
- Index of a new slide.slide
- Slide to clone.
When cloning a slide between different presentations slide's master can be cloned too.
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.
If you need more control over cloning process usepublic int addEmptySlide(LayoutSlideEx layout)
layout
- Layout for a slide.
public void insertEmptySlide(int index, LayoutSlideEx layout)
index
- Index of a new slide.layout
- Layout for a slide.public int addClone(SlideEx slide, LayoutSlideEx layout)
slide
- Slide to clone.layout
- Layout slide for a new slide.
public void insertClone(int index, SlideEx slide, LayoutSlideEx layout)
index
- Index of new slide.slide
- Slide to clone.layout
- Layout slide for a new slide.public int addClone(SlideEx slide, MasterSlideEx master)
slide
- Slide to clone.master
- Master slide for a new slide.
public void insertClone(int index, SlideEx slide, MasterSlideEx master)
index
- Index of new slide.slide
- Slide to clone.master
- Master slide for a new slide.public void remove(SlideEx value)
value
- The slide to remove from the collection.public void remove(int index)
index
- The zero-based index of the element to remove.public java.util.Iterator<SlideEx> iterator()
iterator
in interface java.lang.Iterable<SlideEx>
public SlideEx[] toArray()
public SlideEx[] toArray(int startIndex, int count)
startIndex
- An index of a first slide to add.count
- A number of slides to add.public void reorder(int index, SlideEx slide)
index
- Target index.slide
- Slide to move.public void reorder(int index, SlideEx[] slides)
index
- Target index.slides
- Slides to move.public int indexOf(SlideEx slide)
slide
- Slide to find.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |