com.aspose.slides.pptx
Class ParagraphsEx

java.lang.Object
  extended by com.aspose.slides.pptx.ParagraphsEx

public final class ParagraphsEx
extends java.lang.Object

Represents a collection of a paragraphs.


Method Summary
 int add(ParagraphEx value)
          Adds a paragraph at the end of a collection.
 int add(ParagraphsEx value)
          Adds a content of ParagraphsEx to the end of collection.
 void clear()
          Removes all elements from a collection.
 ParagraphEx get(int index)
          Returns the element at the specified index.
 PresentationEx getPresentation()
          Returns the parent presentation of a paragraphs collection.
 BaseSlideEx getSlide()
          Returns the parent slide of a paragraphs collection.
 void insert(int index, ParagraphEx value)
          Inserts a paragraph into a collection at the specified index.
 void insert(int index, ParagraphsEx value)
          Inserts a content of ParagraphsEx into the collection at the specified index.
 java.util.Iterator iterator()
          Returns an iterator for the entire collection.
 void remove(int index)
          Removes an element at the specified index of a collection.
 int size()
          Returns the number of elements actually contained in the 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 actually contained in the collection.


get

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

Parameters:
index - index of the element to return.
Returns:
See ParagraphEx.

add

public int add(ParagraphEx value)
        throws PptEditException
Adds a paragraph at the end of a collection.

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

add

public int add(ParagraphsEx value)
Adds a content of ParagraphsEx to the end of collection.

Parameters:
value - The ParagraphEx to be added to the end of the collection.
Returns:
The index at which the Paragraph has been added or -1 if there are nothing to add.

insert

public void insert(int index,
                   ParagraphEx value)
            throws PptEditException
Inserts a paragraph into a collection at the specified index.

Parameters:
index - index where a paragraph should be inserted.
value - paragraph to insert.
Throws:
PptEditException

insert

public void insert(int index,
                   ParagraphsEx value)
Inserts a content of ParagraphsEx into the collection at the specified index.

Parameters:
index - The zero-based index at which paragraphs should be inserted.
value - The paragraphs to insert.

clear

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


remove

public void remove(int index)
Removes an element at the specified index of a collection.

Parameters:
index - index of an element to remove.

iterator

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


getSlide

public BaseSlideEx getSlide()
Returns the parent slide of a paragraphs collection.


getPresentation

public PresentationEx getPresentation()
Returns the parent presentation of a paragraphs collection.