IParagraphCollection

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable, com.aspose.slides.ISlideComponent

public interface IParagraphCollection extends System.Collections.Generic.IGenericEnumerable<IParagraph>, ISlideComponent

Represents a collection of a paragraphs.

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
getCount()Gets the number of elements actually contained in the collection.
add(IParagraph value)Adds a Paragraph to the end of collection.
add(IParagraphCollection value)Adds a content of ParagraphCollection to the end of collection.
insert(int index, IParagraph value)Inserts a Paragraph into the collection at the specified index.
insert(int index, IParagraphCollection value)Inserts a content of ParagraphCollection into the collection at the specified index.
clear()Removes all elements from the collection.
removeAt(int index)Removes the element at the specified index of the collection.
remove(IParagraph item)Removes the first occurrence of a specific paragraph.
addFromHtml(String text)Adds text from specified html string to the collection.
addFromHtml(String text, IExternalResourceResolver resolver, String uri)Adds text from specified html string to the collection.
exportToHtml(int firstParagraphIndex, int paragraphsCount, ITextToHtmlConversionOptions options)Converts specifying paragraphs to the HTML and returns it as String object.

get_Item(int index)

public abstract IParagraph get_Item(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexint

Returns: IParagraph

getCount()

public abstract int getCount()

Gets the number of elements actually contained in the collection. Read-only int.

Returns: int

add(IParagraph value)

public abstract void add(IParagraph value)

Adds a Paragraph to the end of collection.

Parameters:

ParameterTypeDescription
valueIParagraphThe Paragraph to be added to the end of the collection.

add(IParagraphCollection value)

public abstract int add(IParagraphCollection value)

Adds a content of ParagraphCollection to the end of collection.

Parameters:

ParameterTypeDescription
valueIParagraphCollectionThe ParagraphCollection to be added to the end of the collection.

Returns: int - The index at which the Paragraph has been added or -1 if there are nothing to add.

insert(int index, IParagraph value)

public abstract void insert(int index, IParagraph value)

Inserts a Paragraph into the collection at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which Paragraph should be inserted.
valueIParagraphThe Paragraph to insert.

insert(int index, IParagraphCollection value)

public abstract void insert(int index, IParagraphCollection value)

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

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which paragraphs should be inserted.
valueIParagraphCollectionThe paragraphs to insert.

clear()

public abstract void clear()

Removes all elements from the collection.

removeAt(int index)

public abstract void removeAt(int index)

Removes the element at the specified index of the collection.

Parameters:

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

remove(IParagraph item)

public abstract boolean remove(IParagraph item)

Removes the first occurrence of a specific paragraph.

Parameters:

ParameterTypeDescription
itemIParagraphThe paragraph to remove from collection.

Returns: boolean - true if item was successfully removed; otherwise, false.

addFromHtml(String text)

public abstract void addFromHtml(String text)

Adds text from specified html string to the collection.

Parameters:

ParameterTypeDescription
textjava.lang.StringHTML text.

addFromHtml(String text, IExternalResourceResolver resolver, String uri)

public abstract void addFromHtml(String text, IExternalResourceResolver resolver, String uri)

Adds text from specified html string to the collection.

Parameters:

ParameterTypeDescription
textjava.lang.StringHTML text.
resolverIExternalResourceResolverResolver callback object which resolves URIs and fetches referrenced objects.
urijava.lang.StringURI for adding HTML document. Used for resolving relative links.

Specifying resolver can potentially introduce a vulnurability. Use with caution. |

exportToHtml(int firstParagraphIndex, int paragraphsCount, ITextToHtmlConversionOptions options)

public abstract String exportToHtml(int firstParagraphIndex, int paragraphsCount, ITextToHtmlConversionOptions options)

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

Parameters:

ParameterTypeDescription
firstParagraphIndexintFirst paragraph index int
paragraphsCountintParagraph count int
optionsITextToHtmlConversionOptionsConvert options ITextToHtmlConversionOptions

Returns: java.lang.String - Generated HTML.