|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Slides
com.aspose.slides.SlideCollection
public final class SlideCollection
Represents a collection of a slides.
Method Summary | |
---|---|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array. |
Slide |
get_Item(int index)
Gets the element at the specified index. |
int |
getCount()
Gets the number of all elements actually contained in the collection. |
int |
getLastSlidePosition()
Returns the position of the last slide in a presentation. |
java.lang.Object |
getSyncRoot()
Returns a synchronization root. |
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). |
com.aspose.ms.System.Collections.IEnumerator<Slide> |
iterator()
Returns an enumerator for the entire collection. |
void |
remove(Slide value)
Removes the first occurrence of a specific object from the collection. |
void |
removeAt(int index)
Removes the element at the specified index of the collection. |
int |
size()
Returns the number of all elements actually contained in the collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<Slide>
array
- Target array.index
- Starting index in the target array.public boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<Slide>
public java.lang.Object getSyncRoot()
Returns a synchronization root.
Readonly object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<Slide>
public int size()
Returns the number of all elements actually contained in the collection.
There are two types of slides that can be represented in the collection: Master Slides and Normal Slides.
To get the number of Normal Slides only, use method Slides.getLastSlidePosition()
:
int countSlides = presentation.getSlides().getLastSlidePosition();
size
in interface com.aspose.ms.System.Collections.ICollection<Slide>
Slides.getCount()
public int getCount()
Slides
Gets the number of all elements actually contained in the collection.
There are two types of slides that can be represented in the collection: Master Slides and Normal Slides.
To get the number of Normal Slides only, use method Slides.getLastSlidePosition()
:
int countSlides = presentation.getSlides().getLastSlidePosition();
getCount
in class Slides
SlideCollection.size()
public Slide get_Item(int index)
Slides
Gets the element at the specified index.
get_Item
in class Slides
public void remove(Slide value)
Slides
Removes the first occurrence of a specific object from the collection.
remove
in class Slides
value
- The Slide to remove from the collection.public void removeAt(int index)
Slides
Removes the element at the specified index of the collection.
removeAt
in class Slides
index
- The zero-based index of the element to remove.public com.aspose.ms.System.Collections.IEnumerator<Slide> iterator()
Slides
Returns an enumerator for the entire collection.
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<Slide>
iterator
in interface java.lang.Iterable<Slide>
iterator
in class Slides
IEnumerator
for the entire collection.public int getLastSlidePosition()
Slides
Returns the position of the last slide in a presentation.
Read-only int
.
getLastSlidePosition
in class Slides
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |