ParagraphCollection
ParagraphCollection class
Represents a collection of a paragraphs.
add
Name | Description |
---|---|
add (Paragraph) | Adds a Paragraph to the end of collection. |
Parameters:
Name | Type | Description |
---|---|---|
value | Paragraph | The Paragraph to be added to the end of the collection. |
Returns: void
add
Name | Description |
---|---|
add (ParagraphCollection) | Adds a content of ParagraphCollection to the end of collection. |
Parameters:
Name | Type | Description |
---|---|---|
value | ParagraphCollection | The ParagraphCollection to be added to the end of the collection. |
Returns: int
addFromHtml
Name | Description |
---|---|
addFromHtml (String) | Adds text from specified html string to the collection. |
Parameters:
Name | Type | Description |
---|---|---|
text | String | HTML text. |
Returns: void
addFromHtml
Name | Description |
---|---|
addFromHtml (String, HtmlExternalResolver, String) | Adds text from specified html string to the collection. |
Parameters:
Name | Type | Description |
---|---|---|
text | String | HTML text. |
resolver | HtmlExternalResolver | Resolver callback object which resolves URIs and fetches referrenced objects. |
uri | String | URI for adding HTML document. Used for resolving relative links. Specifying resolver can potentially introduce a vulnurability. Use with caution. |
Returns: void
addFromHtml
Name | Description |
---|---|
addFromHtml (String, ExternalResourceResolver, String) | Adds text from specified html string to the collection. |
Parameters:
Name | Type | Description |
---|---|---|
text | String | HTML text. |
resolver | ExternalResourceResolver | Resolver callback object which resolves URIs and fetches referrenced objects. |
uri | String | URI for adding HTML document. Used for resolving relative links. Specifying resolver can potentially introduce a vulnurability. Use with caution. |
Returns: void
clear
Name | Description |
---|---|
clear () | Removes all elements from the collection. |
Returns: void
contains
Name | Description |
---|---|
contains (Paragraph) | Determines whether the IGenericCollection contains a specific value. |
Parameters:
Name | Type | Description |
---|---|---|
item | Paragraph | The object to locate in the IGenericCollection. |
Returns: boolean
copyTo
Name | Description |
---|---|
copyTo (com.aspose.slides.IParagraph[], int) | Copies the elements of the IGenericCollection to an Array, starting at a particular Array index. |
Parameters:
Name | Type | Description |
---|---|---|
array | com.aspose.slides.IParagraph[] | The one-dimensional Array that is the destination of the elements copied from IGenericCollection. The Array must have zero-based indexing. |
arrayIndex | int | The zero-based index in array at which copying begins. |
Returns: void
Exception
Error | Condition |
---|---|
ArgumentException | The number of elements in the source IGenericCollection is greater than the available space from arrayIndex to the end of the destination array. |
exportToHtml
Name | Description |
---|---|
exportToHtml (int, int, TextToHtmlConversionOptions) | Converts specifying paragraphs to the HTML and returns it as String object. |
Parameters:
Name | Type | Description |
---|---|---|
firstParagraphIndex | int | First paragraph index int |
paragraphsCount | int | Paragraph count int |
options | TextToHtmlConversionOptions | Convert options ITextToHtmlConversionOptions |
Returns: String
getCount
Name | Description |
---|---|
getCount () | Gets the number of elements actually contained in the collection. Read-only int. |
Returns: int
getPresentation
Name | Description |
---|---|
getPresentation () | Returns the parent presentation of a paragraphs collection. Read-only IPresentation. |
Returns: Presentation
getSlide
Name | Description |
---|---|
getSlide () | Returns the parent slide of a paragraphs collection. Read-only BaseSlide. |
Returns: MasterHandoutSlide, BaseSlide, LayoutSlide, Slide, MasterSlide, NotesSlide, MasterNotesSlide
get_Item
Name | Description |
---|---|
get_Item (int) | Gets the element at the specified index. |
Returns: Paragraph
indexOf
Name | Description |
---|---|
indexOf (Paragraph) | Determines the index of a specific item in the List. |
Parameters:
Name | Type | Description |
---|---|---|
item | Paragraph | The object to locate in the List. |
Returns: int
insert
Name | Description |
---|---|
insert (int, Paragraph) | Inserts a Paragraph into the collection at the specified index. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index at which Paragraph should be inserted. |
value | Paragraph | The Paragraph to insert. |
Returns: void
insert
Name | Description |
---|---|
insert (int, ParagraphCollection) | Inserts a content of ParagraphCollection into the collection at the specified index. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index at which paragraphs should be inserted. |
value | ParagraphCollection | The paragraphs to insert. |
Returns: void
isReadOnly
Name | Description |
---|---|
isReadOnly () | Gets a value indicating whether the IGenericCollection is read-only. Read-only boolean. |
Returns: boolean
iterator
Name | Description |
---|---|
iterator () | Returns an enumerator that iterates through the collection. |
Returns:
iteratorJava
Name | Description |
---|---|
iteratorJava () | Returns a java iterator for the entire collection. |
Returns:
remove
Name | Description |
---|---|
remove (Paragraph) | Removes the first occurrence of a specific object from the IGenericCollection. |
Parameters:
Name | Type | Description |
---|---|---|
item | Paragraph | The object to remove from the IGenericCollection. |
Returns: boolean
Exception
Error | Condition |
---|---|
NotSupportedException | The IGenericCollection is read-only. |
removeAt
Name | Description |
---|---|
removeAt (int) | Removes the element at the specified index of the collection. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index of the element to remove. |
Returns: void