com.aspose.slides
Class Paragraphs

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

public final class Paragraphs
extends java.lang.Object

Represents the collection of a paragraphs.


Constructor Summary
protected Paragraphs()
           
 
Method Summary
 void add(int index, Paragraph value)
          Adds the paragraph into the collection at the specified index.
 int add(Paragraph value)
          Adds the paragraph to the end of this collection.
 void clear()
          Removes all elements from the collection.
 Paragraph get(int index)
          Returns the element at the specified index.
 java.lang.String[] getBulletsText()
          Generates string array with text strings for text-based bullets.
 int[] getNumberedBulletsNumbers()
          Generates and returns integer array with numbers for numbered lists.
protected  java.util.Iterator iterator()
          Returns the iterator for the entire collection.
 void remove(int index)
          Removes the element at the specified index from the collection.
 int size()
          Returns the number of elements in this collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paragraphs

protected Paragraphs()
Method Detail

size

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

Returns:
The number of elements in this collection.

get

public Paragraph 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(Paragraph value)
        throws PptEditException
Adds the paragraph to the end of this collection.

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

add

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

Parameters:
index - the zero-based index at which paragraph should be added.
value - the paragraph 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 from the collection.

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

iterator

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

Returns:
The iterator for the entire collection.

getBulletsText

public java.lang.String[] getBulletsText()
Generates string array with text strings for text-based bullets. For other type bullet or bulletless paragraph places null in correspond position.

Returns:
string array with text strings for text-based bullets.

getNumberedBulletsNumbers

public int[] getNumberedBulletsNumbers()
Generates and returns integer array with numbers for numbered lists. For other type bullet or bulletless paragraph places 0 in correspond position.

Returns:
integer array with numbers for numbered lists.