com.aspose.slides
Class ParagraphCollection

java.lang.Object
  extended by com.aspose.slides.Paragraphs
      extended by com.aspose.slides.ParagraphCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<Paragraph>, com.aspose.ms.System.Collections.IEnumerable<Paragraph>, java.lang.Iterable<Paragraph>

public final class ParagraphCollection
extends Paragraphs
implements com.aspose.ms.System.Collections.ICollection<Paragraph>

Represents a collection of a paragraphs.


Method Summary
 int add(Paragraph value)
           Adds a Paragraph to the end of collection.
 void clear()
           Removes all elements from the collection.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 Paragraph get_Item(int index)
           Gets the element at the specified index.
 java.lang.String[] getBulletsText()
           Generates string array with text strings for text-based bullets.
 int getCount()
           Gets the number of elements actually contained in the collection.
 int[] getNumberedBulletsNumbers()
           Generates integer array with numbers for numbered lists.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 void insert(int index, Paragraph value)
           Inserts a Paragraph into the collection at the specified index.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator iterator()
           Returns an enumerator for the entire collection.
 void removeAt(int index)
           Removes the element at the specified index of the collection.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<Paragraph>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe).

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<Paragraph>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<Paragraph>

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<Paragraph>

getCount

public int getCount()
Description copied from class: Paragraphs

Gets the number of elements actually contained in the collection.

Overrides:
getCount in class Paragraphs

get_Item

public Paragraph get_Item(int index)
Description copied from class: Paragraphs

Gets the element at the specified index.

Overrides:
get_Item in class Paragraphs

add

public int add(Paragraph value)
Description copied from class: Paragraphs

Adds a Paragraph to the end of collection.

Overrides:
add in class Paragraphs
Parameters:
value - The Paragraph to be added to the end of the collection.
Returns:
The index at which the Paragraph has been added.

insert

public void insert(int index,
                   Paragraph value)
Description copied from class: Paragraphs

Inserts a Paragraph into the collection at the specified index.

Overrides:
insert in class Paragraphs
Parameters:
index - The zero-based index at which Paragraph should be inserted.
value - The Paragraph to insert.

clear

public void clear()
Description copied from class: Paragraphs

Removes all elements from the collection.

Overrides:
clear in class Paragraphs

removeAt

public void removeAt(int index)
Description copied from class: Paragraphs

Removes the element at the specified index of the collection.

Overrides:
removeAt in class Paragraphs
Parameters:
index - The zero-based index of the element to remove.

iterator

public com.aspose.ms.System.Collections.IEnumerator iterator()
Description copied from class: Paragraphs

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<Paragraph>
Specified by:
iterator in interface java.lang.Iterable<Paragraph>
Overrides:
iterator in class Paragraphs
Returns:
An IEnumerator for the entire collection.

getBulletsText

public java.lang.String[] getBulletsText()
Description copied from class: Paragraphs

Generates string array with text strings for text-based bullets. For other type bullet or bulletless paragraph places null in correspond position

Overrides:
getBulletsText in class Paragraphs
Returns:

getNumberedBulletsNumbers

public int[] getNumberedBulletsNumbers()
Description copied from class: Paragraphs

Generates integer array with numbers for numbered lists. For other type bullet or bulletless paragraph places 0 in correspond position

Overrides:
getNumberedBulletsNumbers in class Paragraphs
Returns: