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
 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 copyTo(java.lang.Object[] 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.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 int size()
           
 
Methods inherited from class com.aspose.slides.ParagraphsEx
add, add, clear, get_Item, getCount, getPresentation, getSlide, insert, insert, iterator, notify, removeAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aspose.ms.System.Collections.IEnumerable
iterator
 

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(java.lang.Object[] 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.

size

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

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>