ParagraphCollection

ParagraphCollection class

Represents a collection of a paragraphs.

add

NameDescription
add (Paragraph)Adds a Paragraph to the end of collection.

Parameters:

NameTypeDescription
valueParagraphThe Paragraph to be added to the end of the collection.

Returns: void


add

NameDescription
add (ParagraphCollection)Adds a content of ParagraphCollection to the end of collection.

Parameters:

NameTypeDescription
valueParagraphCollectionThe ParagraphCollection to be added to the end of the collection.

Returns: int


addFromHtml

NameDescription
addFromHtml (String)Adds text from specified html string to the collection.

Parameters:

NameTypeDescription
textStringHTML text.

Returns: void


addFromHtml

NameDescription
addFromHtml (String, HtmlExternalResolver, String)Adds text from specified html string to the collection.

Parameters:

NameTypeDescription
textStringHTML text.
resolverHtmlExternalResolverResolver callback object which resolves URIs and fetches referrenced objects.
uriStringURI for adding HTML document. Used for resolving relative links. Specifying resolver can potentially introduce a vulnurability. Use with caution.

Returns: void


addFromHtml

NameDescription
addFromHtml (String, ExternalResourceResolver, String)Adds text from specified html string to the collection.

Parameters:

NameTypeDescription
textStringHTML text.
resolverExternalResourceResolverResolver callback object which resolves URIs and fetches referrenced objects.
uriStringURI for adding HTML document. Used for resolving relative links. Specifying resolver can potentially introduce a vulnurability. Use with caution.

Returns: void


clear

NameDescription
clear ()Removes all elements from the collection.

Returns: void


contains

NameDescription
contains (Paragraph)Determines whether the IGenericCollection contains a specific value.

Parameters:

NameTypeDescription
itemParagraphThe object to locate in the IGenericCollection.

Returns: boolean


copyTo

NameDescription
copyTo (com.aspose.slides.IParagraph[], int)Copies the elements of the IGenericCollection to an Array, starting at a particular Array index.

Parameters:

NameTypeDescription
arraycom.aspose.slides.IParagraph[]The one-dimensional Array that is the destination of the elements copied from IGenericCollection. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.

Returns: void

Exception

ErrorCondition
ArgumentExceptionThe number of elements in the source IGenericCollection is greater than the available space from arrayIndex to the end of the destination array.

exportToHtml

NameDescription
exportToHtml (int, int, TextToHtmlConversionOptions)Converts specifying paragraphs to the HTML and returns it as String object.

Parameters:

NameTypeDescription
firstParagraphIndexintFirst paragraph index int
paragraphsCountintParagraph count int
optionsTextToHtmlConversionOptionsConvert options ITextToHtmlConversionOptions

Returns: String


getCount

NameDescription
getCount ()Gets the number of elements actually contained in the collection. Read-only int.

Returns: int


getPresentation

NameDescription
getPresentation ()Returns the parent presentation of a paragraphs collection. Read-only IPresentation.

Returns: Presentation


getSlide

NameDescription
getSlide ()Returns the parent slide of a paragraphs collection. Read-only BaseSlide.

Returns: MasterHandoutSlide, BaseSlide, LayoutSlide, Slide, MasterSlide, NotesSlide, MasterNotesSlide


get_Item

NameDescription
get_Item (int)Gets the element at the specified index.

Returns: Paragraph


indexOf

NameDescription
indexOf (Paragraph)Determines the index of a specific item in the List.

Parameters:

NameTypeDescription
itemParagraphThe object to locate in the List.

Returns: int


insert

NameDescription
insert (int, Paragraph)Inserts a Paragraph into the collection at the specified index.

Parameters:

NameTypeDescription
indexintThe zero-based index at which Paragraph should be inserted.
valueParagraphThe Paragraph to insert.

Returns: void


insert

NameDescription
insert (int, ParagraphCollection)Inserts a content of ParagraphCollection into the collection at the specified index.

Parameters:

NameTypeDescription
indexintThe zero-based index at which paragraphs should be inserted.
valueParagraphCollectionThe paragraphs to insert.

Returns: void


isReadOnly

NameDescription
isReadOnly ()Gets a value indicating whether the IGenericCollection is read-only. Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava ()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove (Paragraph)Removes the first occurrence of a specific object from the IGenericCollection.

Parameters:

NameTypeDescription
itemParagraphThe object to remove from the IGenericCollection.

Returns: boolean

Exception

ErrorCondition
NotSupportedExceptionThe IGenericCollection is read-only.

removeAt

NameDescription
removeAt (int)Removes the element at the specified index of the collection.

Parameters:

NameTypeDescription
indexintThe zero-based index of the element to remove.

Returns: void