ParagraphCollection

ParagraphCollection

Overview

ParagraphCollection is a class in Aspose.Slides FOSS for Java. Inherits from: BaseCollection<IParagraph>, IParagraphCollection, ISlideComponent.

Represents a collection of paragraphs.

Properties

NameTypeAccessDescription
paragraphsList<IParagraph>ReadBuilds and returns the list of paragraphs.
readOnlybooleanReadProperty indicates if the collection is read‑only
slideIBaseSlideReadProperty gets the owning slide of the collection
presentationIPresentationReadProperty gets the containing presentation

Methods

SignatureDescription
ParagraphCollection()Creates an empty ParagraphCollection.
ParagraphCollection(paragraphs: List<IParagraph>)Creates a ParagraphCollection with the given initial paragraphs.
initInternal(txbodyElement: Element, slidePart: Object, parentSlide: IBaseSlide)ParagraphCollectionInitialises this collection from an OOXML text-body element.
getParagraphs()List<IParagraph>Builds and returns the list of paragraphs.
get(index: int)IParagraph
size()int
count()intReturns the number of paragraphs (alias of size)
isReadOnly()boolean
asISlideComponent()ISlideComponentReturns the collection as an ISlideComponent
asIEnumerable()Iterable<IParagraph>Returns an Iterable over the paragraphs
asIPresentationComponent()IPresentationComponentReturns the collection as an IPresentationComponent
getSlide()IBaseSlideReturns the slide that owns this collection
getPresentation()IPresentationReturns the presentation containing this collection
add(value: IParagraph)Appends a paragraph to the end of the collection
insert(index: int, value: IParagraph)
indexOf(item: IParagraph)intReturns the index of the given paragraph or -1 if absent
contains(item: IParagraph)booleanReturns true if the collection includes the specified paragraph
clear()
removeAt(index: int)Removes the paragraph at the given index
remove(item: IParagraph)booleanDeletes the specified paragraph and returns success status
iterator()Iterator<IParagraph>Provides an iterator over the paragraphs

See Also