public interface IParagraphCollection extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IParagraph>, ISlideComponent
Represents a collection of a paragraphs.
Modifier and Type | Method and Description |
---|---|
void |
add(IParagraph value)
Adds a Paragraph to the end of collection.
|
int |
add(IParagraphCollection value)
Adds a content of ParagraphCollection 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,
IExternalResourceResolver resolver,
java.lang.String uri)
Adds text from specified html string to the collection.
|
void |
clear()
Removes all elements from the collection.
|
java.lang.String |
exportToHtml(int firstParagraphIndex,
int paragraphsCount,
ITextToHtmlConversionOptions options)
Converts specifying paragraphs to the HTML and returns it as String object.
|
IParagraph |
get_Item(int index)
Gets the element at the specified index.
|
int |
getCount()
Gets the number of elements actually contained in the collection.
|
void |
insert(int index,
IParagraph value)
Inserts a Paragraph into the collection at the specified index.
|
void |
insert(int index,
IParagraphCollection value)
Inserts a content of ParagraphCollection into the collection at the specified index.
|
boolean |
remove(IParagraph item)
Removes the first occurrence of a specific paragraph.
|
void |
removeAt(int index)
Removes the element at the specified index of the collection.
|
iterator
getSlide
getPresentation
IParagraph get_Item(int index)
Gets the element at the specified index.
int getCount()
Gets the number of elements actually contained in the collection.
Read-only int
.
void add(IParagraph value)
Adds a Paragraph to the end of collection.
value
- The Paragraph to be added to the end of the collection.int add(IParagraphCollection value)
Adds a content of ParagraphCollection to the end of collection.
value
- The ParagraphCollection to be added to the end of the collection.void insert(int index, IParagraph value)
Inserts a Paragraph into the collection at the specified index.
index
- The zero-based index at which Paragraph should be inserted.value
- The Paragraph to insert.void insert(int index, IParagraphCollection value)
Inserts a content of ParagraphCollection into the collection at the specified index.
index
- The zero-based index at which paragraphs should be inserted.value
- The paragraphs to insert.void clear()
Removes all elements from the collection.
void removeAt(int index)
Removes the element at the specified index of the collection.
index
- The zero-based index of the element to remove.boolean remove(IParagraph item)
Removes the first occurrence of a specific paragraph.
item
- The paragraph to remove from collection.item
was successfully removed; otherwise, false.void addFromHtml(java.lang.String text)
Adds text from specified html string to the collection.
text
- HTML text.void addFromHtml(java.lang.String text, IExternalResourceResolver resolver, java.lang.String uri)
Adds text from specified html string to the collection.
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.
java.lang.String exportToHtml(int firstParagraphIndex, int paragraphsCount, ITextToHtmlConversionOptions options)
Converts specifying paragraphs to the HTML and returns it as String object.
firstParagraphIndex
- Index of paragraph.paragraphsCount
- Count of paragraphs.options
- ITextToHtmlConversionOptions
object.