com.aspose.slides
Class Slides

java.lang.Object
  extended by com.aspose.slides.Slides

public final class Slides
extends java.lang.Object

Represents the collection of a slides.


Constructor Summary
protected Slides()
           
 
Method Summary
protected  void add(int index, Slide value)
           
protected  int add(Slide value)
          Adds the new slide at the end of the collection.
protected  void clear()
          Removes all elements from the collection.
 Slide get(int index)
          Returns the element at the specified index.
 int getLastSlidePosition()
          Returns the position of the last slide in a presentation.
protected  java.util.Iterator 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 elements in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slides

protected Slides()
Method Detail

size

public int size()
Returns the number of elements in the collection.

Returns:
The number of elements in the collection.

get

public Slide get(int index)
Returns the element at the specified index.

Parameters:
index - index of element to return.
Returns:
The element at the specified index.

add

protected int add(Slide value)
Adds the new slide at the end of the collection.

Parameters:
value - the slide to be added at the end of the collection.
Returns:
The index at which the slide has been added.

add

protected void add(int index,
                   Slide value)

clear

protected void clear()
Removes all elements from the collection.


remove

public void remove(Slide value)
            throws PptPropertyException
Removes the first occurrence of a specific object from the collection.

Parameters:
value - the Slide to remove from the collection.
Throws:
PptPropertyException

removeAt

public void removeAt(int index)
              throws PptPropertyException
Removes the element at the specified index of the collection.

Parameters:
index - the zero-based index of the element to remove.
Throws:
PptPropertyException

iterator

protected java.util.Iterator iterator()
Returns an enumerator for the entire collection.

Returns:
enumerator for the entire collection.

getLastSlidePosition

public int getLastSlidePosition()
Returns the position of the last slide in a presentation.

Returns:
The position of the last slide.