com.aspose.slides
Class Portions

java.lang.Object
  extended by com.aspose.slides.Portions
All Implemented Interfaces:
java.lang.Iterable<Portion>

public final class Portions
extends java.lang.Object
implements java.lang.Iterable<Portion>

Represents the collection of a portions.


Method Summary
 void add(int index, Portion value)
          Adds the portion into the collection at the specified index.
 int add(Portion value)
          Adds the portion at the end of the collection.
 void clear()
          Removes all elements from the collection.
 Portion get(int index)
          Returns the element at the specified index.
 java.util.Iterator iterator()
          Returns the iterator for the entire collection.
 void remove(int index)
          Removes the element at the specified index.
 int size()
          Returns the number of elements in this collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

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

Returns:
The number of elements in this collection.

get

public Portion 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

public int add(Portion value)
        throws PptEditException
Adds the portion at the end of the collection.

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

add

public void add(int index,
                Portion value)
         throws PptEditException
Adds the portion into the collection at the specified index.

Parameters:
index - the zero-based index at which portion should be added.
value - The portion to add.
Throws:
PptEditException

clear

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


remove

public void remove(int index)
Removes the element at the specified index.

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

iterator

public java.util.Iterator iterator()
Returns the iterator for the entire collection.

Specified by:
iterator in interface java.lang.Iterable<Portion>
Returns:
The iterator for the entire collection.