Paragraphs
Overview
Paragraphs is a class in Aspose.Pdf FOSS for Java.
Inherits from: Iterable<BaseParagraph>.
Represents an ordered collection of {@link BaseParagraph} elements that make up the content of a page, cell, or other container.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of paragraphs in this collection. |
empty | boolean | Read | Returns whether this collection contains no paragraphs. |
Methods
| Signature | Description |
|---|---|
Paragraphs() | Creates an empty Paragraphs collection. |
add(paragraph: BaseParagraph) | Adds a paragraph to the end of this collection. |
add(text: String) | Convenience method that creates a {@link TextFragment} from the given text |
| and adds it to this collection. | |
get(index: int) → BaseParagraph | Returns the paragraph at the specified index. |
size() → int | Returns the number of paragraphs in this collection. |
getCount() → int | Returns the number of paragraphs in this collection. |
remove(index: int) → BaseParagraph | Removes the paragraph at the specified index. |
clear() | Removes all paragraphs from this collection. |
isEmpty() → boolean | Returns whether this collection contains no paragraphs. |
iterator() → Iterator<BaseParagraph> | Returns an iterator over the paragraphs in this collection. |