com.aspose.pdf.elements
Class Paragraphs

java.lang.Object
  extended by com.aspose.pdf.elements.Paragraphs

public class Paragraphs
extends java.lang.Object

Represents a collection of Paragraph objects.


Constructor Summary
Paragraphs()
          Initializes a new instance of the Paragraphs class.
 
Method Summary
 void add(Paragraph paragraph)
          Adds a new Paragraph object into the collection.
 void clear()
          Clear paragraphs of pdf.
 java.lang.Object clone()
          Paragraphs does not support clone method.
 Paragraph get(int index)
           
 Paragraph getByID(java.lang.String ID)
           
 int indexOf(Paragraph paragraph)
          Gets the index of a specified paragraph in the collection.
 void Insert(int index, Paragraph paragraph)
          Inserts a new Paragraph object into the collection at specified position.
 boolean isEmpty()
          Returns true if the collection contains no paragraph.
 java.util.Iterator iterator()
          Returns an iterator over the paragraph objects in paragraphs in proper sequence.
 void remove(int index)
          Removes a Paragraph object from the collection at the specified position.
 void remove(Paragraph paragraph)
          Removes a Paragraph object from the collection.
 int size()
          Gets the size of paragraph objects collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paragraphs

public Paragraphs()
Initializes a new instance of the Paragraphs class.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Paragraphs does not support clone method.

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

add

public void add(Paragraph paragraph)
Adds a new Paragraph object into the collection.

Parameters:
paragraph - the paragraph that will be added.

clear

public void clear()
Clear paragraphs of pdf.


indexOf

public int indexOf(Paragraph paragraph)
Gets the index of a specified paragraph in the collection.

Returns:
The index of the specified paragraph

getByID

public Paragraph getByID(java.lang.String ID)

Insert

public void Insert(int index,
                   Paragraph paragraph)
Inserts a new Paragraph object into the collection at specified position.

Parameters:
index - The position that the paragraph will be inserted at.
paragraph - the paragraph that willed inserted.

remove

public void remove(Paragraph paragraph)
Removes a Paragraph object from the collection.

Parameters:
paragraph - The paragraph that willed removed.

remove

public void remove(int index)
Removes a Paragraph object from the collection at the specified position.

Parameters:
index - The index of the paragraph that willed removed.

size

public int size()
Gets the size of paragraph objects collection.


iterator

public java.util.Iterator iterator()
Returns an iterator over the paragraph objects in paragraphs in proper sequence.


isEmpty

public boolean isEmpty()
Returns true if the collection contains no paragraph.


get

public Paragraph get(int index)
Returns:
Returns the element at the specified position in this list.