com.aspose.slides
Class ParagraphExCollection

java.lang.Object
  extended by com.aspose.slides.ParagraphsEx
      extended by com.aspose.slides.ParagraphExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<ParagraphEx>, com.aspose.ms.System.Collections.IEnumerable<ParagraphEx>, java.lang.Iterable<ParagraphEx>

public final class ParagraphExCollection
extends ParagraphsEx
implements com.aspose.ms.System.Collections.ICollection<ParagraphEx>

Represents a collection of a paragraphs.


Method Summary
 int add(ParagraphEx value)
           Adds a Paragraph to the end of collection.
 int add(ParagraphExCollection value)
           Adds a content of ParagraphsEx to the end of collection.
 void addFromHtml(java.lang.String text)
           Adds text from specified html string to the collection.
 void addFromHtml(java.lang.String text, HtmlExternalResolver resolver, java.lang.String uri)
           Adds text from specified html string to the 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.
 java.lang.String exportToHtml(int firstParagraphIndex, int paragraphsCount, TextToHtmlConversionOptions options)
           Converts specifying paragraphs to the HTML and returns it as String object.
 ParagraphEx get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Gets the number of elements actually contained in the collection.
 PresentationEx getPresentation()
           Returns the parent presentation of a paragraphs collection.
 BaseSlideEx getSlide()
           Returns the parent slide of a paragraphs collection.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 void insert(int index, ParagraphEx value)
           Inserts a Paragraph into the collection at the specified index.
 void insert(int index, ParagraphExCollection value)
           Inserts a content of ParagraphExCollection 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<ParagraphEx> iterator()
           Returns an enumerator for the entire collection.
 void notify(java.lang.Object sender)
           
 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

addFromHtml

public void addFromHtml(java.lang.String text)

Adds text from specified html string to the collection.

Parameters:
text - HTML text.

addFromHtml

public void addFromHtml(java.lang.String text,
                        HtmlExternalResolver resolver,
                        java.lang.String uri)

Adds text from specified html string to the collection.

Parameters:
text - HTML text.
resolver - Resolver callback object which resolves URIs and fetches referrenced objects.
uri - URI for adding HTML document. Used for resolving relative links.


Specifiing resolver can produce vulnurability. Use with caution.


exportToHtml

public java.lang.String exportToHtml(int firstParagraphIndex,
                                     int paragraphsCount,
                                     TextToHtmlConversionOptions options)

Converts specifying paragraphs to the HTML and returns it as String object.

Parameters:
firstParagraphIndex -
paragraphsCount -
options -
Returns:
Generated HTML.

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<ParagraphEx>
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<ParagraphEx>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

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

size

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

getCount

public int getCount()
Description copied from class: ParagraphsEx

Gets the number of elements actually contained in the collection.

Overrides:
getCount in class ParagraphsEx

get_Item

public ParagraphEx get_Item(int index)
Description copied from class: ParagraphsEx

Gets the element at the specified index.

Overrides:
get_Item in class ParagraphsEx

add

public int add(ParagraphEx value)
Description copied from class: ParagraphsEx

Adds a Paragraph to the end of collection.

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

add

public int add(ParagraphExCollection value)
Description copied from class: ParagraphsEx

Adds a content of ParagraphsEx to the end of collection.

Overrides:
add in class ParagraphsEx
Parameters:
value - The ParagraphExCollection 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)
Description copied from class: ParagraphsEx

Inserts a Paragraph into the collection at the specified index.

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

insert

public void insert(int index,
                   ParagraphExCollection value)
Description copied from class: ParagraphsEx

Inserts a content of ParagraphExCollection into the collection at the specified index.

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

clear

public void clear()
Description copied from class: ParagraphsEx

Removes all elements from the collection.

Overrides:
clear in class ParagraphsEx

removeAt

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

Removes the element at the specified index of the collection.

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

iterator

public com.aspose.ms.System.Collections.IEnumerator<ParagraphEx> iterator()
Description copied from class: ParagraphsEx

Returns an enumerator for the entire collection.

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

getSlide

public BaseSlideEx getSlide()
Description copied from class: ParagraphsEx

Returns the parent slide of a paragraphs collection. Read-only BaseSlideEx.

Overrides:
getSlide in class ParagraphsEx

getPresentation

public PresentationEx getPresentation()
Description copied from class: ParagraphsEx

Returns the parent presentation of a paragraphs collection. Read-only PresentationEx.

Overrides:
getPresentation in class ParagraphsEx

notify

public void notify(java.lang.Object sender)
Overrides:
notify in class ParagraphsEx